maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Help with my camera (https://talk.maemo.org/showthread.php?t=48960)

pta0007 2010-04-01 13:19

Help with my camera
 
Hi,

I recently meet with a problem with the camera on N900. I have developed some app running the camera. However, if I keep running it for a long while, the camera will fail to work. Sometimes the hue of the capture seems unnormal (a little bit yellow), and sometimes the camera function cant be opened. And I have to restart it.

Does the problem do anything with cache memory? Is there any way to sovle this?

Cheers.

pelago 2010-04-01 15:11

Re: Help with my camera
 
Very hard to say without knowing more about your app, e.g. how you are accessing the camera. If it's open source maybe you could post your source code somewhere.

pta0007 2010-04-01 18:01

Re: Help with my camera
 
Quote:

Originally Posted by pelago (Post 591495)
Very hard to say without knowing more about your app, e.g. how you are accessing the camera. If it's open source maybe you could post your source code somewhere.

I use OpenCV library to access the camera. Here is the code:
Code:

int main(int argc,char** argv)
{
    CvCapture* capture = 0;
    if( argc == 1 || (argc == 2 && strlen(argv[1]) == 1 && isdigit(argv[1][0]))){
        capture = cvCaptureFromCAM( argc == 2 ? argv[1][0] - '0' : 0 );
    }
...

    for(;;){       
        g_image = cvQueryFrame( capture );
        ...
        cvWaitKey(100);
    }
...

cvReleaseCapture(&capture);


aadags 2012-09-08 11:25

Re: Help with my camera
 
1 Attachment(s)
hey guys i just completely change my broken usbport. now my camera shows a strange blurry image. i hope its not related. i attached an image taken with it. pls help.

aadags 2012-09-08 11:38

Re: Help with my camera
 
is this an hardware problem or software?

sicelo 2012-09-08 11:55

Re: Help with my camera
 
most likely you burned the camera sensor while soldering the usb port on.
check to see all connections are ok. if all is fine, then replace the sensor

aadags 2012-09-08 15:45

Re: Help with my camera
 
Quote:

Originally Posted by qhubekela (Post 1263078)
most likely you burned the camera sensor while soldering the usb port on.
check to see all connections are ok. if all is fine, then replace the sensor

okay but what do u mean by connections?

sicelo 2012-09-08 16:04

Re: Help with my camera
 
eg, reseat the camera module in case you moved it accidentally, and the other connections, such as ribbon. on N900 seemingly unrelated components exert a great influence on others. that said, more likely than not you need a new camera module.


All times are GMT. The time now is 20:16.

vBulletin® Version 3.8.8