Main Site Documentation

Camera doesn't work


#1

Hi,

I try to capture image by Camera but CameraReady property doesn’t become true and exception happen when TakePicture and StartStreaming is called.
Is this bug of R5 SDK?
Is there any temporary solution?

Regards,


#2

A known issue with the latest release.

See
https://www.ghielectronics.com/community/forum/topic?id=17180&page=1#msg171087


#3

Hi, show your code where you try to take a picture… Do you do a pictureready in timer event?


#4

Yes, I call in timer tick handler

        void timer_Tick(GT.Timer timer)
        {
            timer.Stop();
            if (camera.CameraReady)
            {
                camera.TakePicture();
            }
            timer.Start();
        }

#5

What camera do you use?

Try to put startstreaming method in program started func and chech your newimageready


#6

I use https://www.ghielectronics.com/catalog/product/283
When StartStreaming is called, exception happens.


#7

If it did not become true then how it jump to TakePicture() function and throw exception?
:think:


#8

Is there already a fix available? Cannot use the camera as well.


#9

@ AWSOMEDEVSIGNER - Take a look at Sprigo’s post.


#10

@ John - Will do. Was late already. Thanks :slight_smile: