473,800 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2770
rg********@gmai l.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********@gma il.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********@gma il.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********@gmai l.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********@gmai l.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********@gma il.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
1563
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 windows). The project combines image acquisition, manipulation techniques with other image processing techniques and neural network approaches. im using video for windows to capture images from a webcam( EZONICS CAM II ). if u have used video for windows,...
2
5141
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 know how to do it? Thanks in advance Jonh
5
5044
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 that calls the web service to render a vertical strip of images. After doing some research I am unable to find some vb.net code that can assist in what I want to achieve. The closest thing I found was
4
5627
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 FireFox and Safari it appears as a narrow column of text with only 2-3 words per line. Here is the code: function showAll()
2
6855
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 to is to bind a combobox to this table so that the combobox will display these these five images in its dropdown list and the user can then select any of them. Depending on which image is selected, the combobox will display the image and I will...
11
4171
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 user's related images like below: Id First Name Last Name Title Image1 Image2 Image3
1
1174
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 have the photographs available just after successful upload. Can you tell me, maybe there is some way to do that? Is it a my hosting server fault? Thank you in advance Marcin from Poland
2
3270
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 validated my HTML and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for...
6
1596
by: Geoff Cox | last post by:
Hello, I am using the following css ..hiddenDiv2 { display: none; } ..visibleDiv2{ display: inline;
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10276
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.