Re: Show Image problem

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Mahim Mishra (mahim@cs.cmu.edu)
Date: 01/30/03


There's a bug in showImage: it asks for a shared memory segment that is
larger than the one created by loadImage, which causes shmget to throw an
EINVAL error. Reducing the segment size in the call to shmget in showImage
(I have found that even 0 works in this case) solves this problem.

Mahim

On Wed, 29 Jan 2003, Gaurav Kataria wrote:

>
> Suman,
>
> The showImage doesn't work. I am still getting no image displayed. It says
> reading from shared memory with SHM_KEY=75...but does not display.
>
> Gaurav
>
> On Tue, 28 Jan 2003, Suman Nath wrote:
>
> >
> > To use showImage, you first need to load an image into the shared memory
> > with key=75. The image should be of resolution 640x480. You can use the
> > images in SA/IrisWebcam/images directory.
> >
> > After you have loaded the image into shared memory, you can use the
> > showImage to see the image.
> >
> >
> >
> > On Tue, 28 Jan 2003, Gaurav Kataria wrote:
> >
> > >
> > > Thanks! It's ok now. Could you solve another problem for me? While using
> > > showImage- it shows
> > >
> > > Reading from the shared memory with SHM_KEY=75. To use different SHM_KEY,
> > > use 's[irisnet@localhost IrisWebcam]$ ing shared segment
> > >
> > > It does not display the image. Do I have to setup a viewer? Or is it
> > > because of the Camstream not being properly installed? Or something else?
> > >
> > > Thanks,
> > > Gaurav
> > >
>
>

--
Mahim Mishra
Graduate Student, CS Deptt,      8203 Wean Hall, CMU
School of Computer Science,      ph  :+1-412-268-3562
Carnegie Mellon University.      www :http://www.cs.cmu.edu/~mahim

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.5 : 06/10/04 EDT