473,378 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Display captured images in realtime

Hi,
I hope this is the correct group for my query, please advise if
there's a more relevant place for me!

I'm using a USB camera (Sentech C83) with Linux and I have some C code
for reading data from the driver and writing it to disk. The data are
images in raw format and so I need to convert them to jpeg (or bmp)
before I can view them in a standard image viewer. My problem is that
I'd like to display the raw images that I get from the camera on the
screen in realtime. I believe that it should be possible to write
them directly to the video buffer with minimal pre-processing, but
I've never done that before and frankly I'm not sure where to start!
My searching on google hasn't given any promising leads yet, can
anyone here help?

Thanks in advance,
Rob
Aug 13 '08 #1
6 2752
rg********@gmail.com wrote:
Hi,
I hope this is the correct group for my query,
No, it is not as your task is impossible with C as defined be the
international standards that are topical here, you'd need to use extensions
provided by your O/S and Compiler
please advise if
there's a more relevant place for me!
Some group related to Linux and programing.
I'm using a USB camera (Sentech C83) with Linux and I have some C code
for reading data from the driver and writing it to disk. The data are
images in raw format and so I need to convert them to jpeg (or bmp)
before I can view them in a standard image viewer. My problem is that
I'd like to display the raw images that I get from the camera on the
screen in realtime. I believe that it should be possible to write
them directly to the video buffer with minimal pre-processing, but
I've never done that before and frankly I'm not sure where to start!
My searching on google hasn't given any promising leads yet, can
anyone here help?

Thanks in advance,
Rob
Bye, Jojo
Aug 13 '08 #2
<rg********@gmail.comwrote:
I hope this is the correct group for my query, please advise if
there's a more relevant place for me!

I'm using a USB camera (Sentech C83) with Linux and I have some C code
for reading data from the driver and writing it to disk. The data are
images in raw format and so I need to convert them to jpeg (or bmp)
before I can view them in a standard image viewer. My problem is that
I'd like to display the raw images that I get from the camera on the
screen in realtime. I believe that it should be possible to write
them directly to the video buffer with minimal pre-processing, but
I've never done that before and frankly I'm not sure where to start!
My searching on google hasn't given any promising leads yet, can
anyone here help?
If you are in the US, I would expect you are trying to display an NTSC image
on Linux.

I would put NTSC (or PAL) as part of the search target on Google to restrict
the number of hits.
Aug 13 '08 #3
osmium wrote:
<rg********@gmail.comwrote:
>I hope this is the correct group for my query, please advise if
there's a more relevant place for me!

I'm using a USB camera (Sentech C83) with Linux and I have some C code
for reading data from the driver and writing it to disk. The data are
images in raw format and so I need to convert them to jpeg (or bmp)
before I can view them in a standard image viewer. My problem is that
I'd like to display the raw images that I get from the camera on the
screen in realtime. I believe that it should be possible to write
them directly to the video buffer with minimal pre-processing, but
I've never done that before and frankly I'm not sure where to start!
My searching on google hasn't given any promising leads yet, can
anyone here help?

If you are in the US, I would expect you are trying to display an NTSC image
on Linux.

I would put NTSC (or PAL) as part of the search target on Google to restrict
the number of hits.
http://www.sentechamerica.com/STC-C83USB-A.pdf

http://www.theimagingsource.com/prod...s/icx204ak.pdf

Paul

Aug 13 '08 #4
On 13 Aug 2008 at 8:25, rg********@gmail.com wrote:
I hope this is the correct group for my query, please advise if
there's a more relevant place for me!
Your question is perfectly topical here, but be prepared to be showered
with abuse by some of the more cantakerous "regulars" who delight in
showing hostility to new posters.
I'm using a USB camera (Sentech C83) with Linux and I have some C code
for reading data from the driver and writing it to disk. The data are
images in raw format and so I need to convert them to jpeg (or bmp)
before I can view them in a standard image viewer. My problem is that
I'd like to display the raw images that I get from the camera on the
screen in realtime. I believe that it should be possible to write
them directly to the video buffer with minimal pre-processing, but
I've never done that before and frankly I'm not sure where to start!
I think that's extremely unlikely.

There are many "raw" image formats, and I can't see any reason why any
of them should correspond in a nice way to a format acceptable to a
video system.

Check out dcraw (http://www.cybercom.net/~dcoffin/dcraw/), which is
plain C (so presumably fast) and aims to decode all "raw" formats.

Aug 13 '08 #5
In article <sl*******************@nospam.invalid>,
Antoninus Twink <no****@nospam.invalidwrote:
>On 13 Aug 2008 at 8:25, rg********@gmail.com wrote:
>I hope this is the correct group for my query, please advise if
there's a more relevant place for me!
>Your question is perfectly topical here,
The part about reading a fixed image file format and decoding
it into image pixels can be done in standard C (given sufficient
documentation of the file format), but the part about displaying
images in real time onto a display is not possible in standard C:
it is only possible using device-specific or operating-system
specific extensions that are beyond the scope of C.

Contrary to Mr. Twink's implications, this newsgroup does not exist to
discuss every library or operating system extension that can be called
from some C implementation somewhere: as there is very little
that would be impossible to call from some suitably designed C
implementation, Mr. Twink would effectively wish us to believe
that pretty much *every* programming problem is topical here if it
involves C in any capacity. (Or, as was seen recently, even if it
involves any of the tool-chains commonly used with C, when when the
poster had clearly indicated that the programming language in use
was not C.)
--
"There are some ideas so wrong that only a very intelligent person
could believe in them." -- George Orwell
Aug 13 '08 #6

<rg********@gmail.comwrote in message
I'm using a USB camera (Sentech C83) with Linux and I have some C code
for reading data from the driver and writing it to disk. My problem is
that
I'd like to display the raw images that I get from the camera on the
screen in realtime.
You need to look at Xlib.
My BabyX toolkit is designed to make jobs like this very easy, unfortunately
its not ready yet. I wouldn't recommend another toolkit if you've done no X
programming before.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Aug 13 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: dicky2283 | last post by:
windows development community please help me im deepak roy , doing my final year undergrad in computer science.... im doing a project - Motion detection and Tracking in vc++( video for...
2
by: John Do | last post by:
Hi, I want to store the path and the name of the images in a sql 2000 database and all the images in a folder named images. And then I want to display all the images in a datagrid. Does any one...
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
4
by: drew197 | last post by:
I am a newbie. I am editing someone elses code to make it compatible with Firefox and Safari. In IE, when you click on the proper link, a block of text is shown in a nice paragraph form. But, in...
2
by: Randy | last post by:
Hi, I have a small table - 2 columns, 5 rows. Col 1 is the key column and has integer values of 1 through 5. Column 2 is a varbinary(MAX) column and has jpg images loaded in it. What I want...
11
by: Jankie | last post by:
I need to dispaly a user's multiple images in one entry.Right now,say if a user uploads 3 images,three entries for the same id display to match 3 images. I only want 1 entry to display all of a...
1
by: MZ | last post by:
Hello! I have created a script for uploading photographs with size less than 50 KB. Everything works fine, but the images are viewable after a not so long time, but not at once. I would like to...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
6
by: Geoff Cox | last post by:
Hello, I am using the following css ..hiddenDiv2 { display: none; } ..visibleDiv2{ display: inline;
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.