Ask Your Question

SimonKirkman's profile - activity

2020-05-06 09:11:42 -0600 asked a question Applying external calibration parameters to an image

Applying external calibration parameters to an image I tried to do camera calibration using opencv but i kept getting a

2020-05-01 04:14:59 -0600 received badge  Enthusiast
2020-04-05 06:03:29 -0600 commented answer VideoCapture from unsupported API

It worked! Thanks so much for your help!

2020-04-05 06:02:50 -0600 marked best answer VideoCapture from unsupported API

I have two cameras which have their own API which isn’t supported amongst the VideoCaptureAPIs.These cameras do not register as cameras either so they cannot be called up using a camera number as you would with a usb webcam. The cameras api writes the video data to an unsigned char and you can loop the capture sequence to get the data. I was wondering if there was a way to get a live video stream using the data stored in the char. Below is the description from the cameras API.

Descriptions:

get data from the video buffer.the buffer is very small

you need to call this API as fast as possible, otherwise frame will be discarded

so the best way is maintain one buffer loop and call this API in a loop

please make sure the buffer size is biger enough to hold one image

otherwise the this API will crash

Paras:

int CameraID: this is get from the camera property use the API ASIGetCameraProperty

unsigned char* pBuffer, caller need to malloc the buffer, make sure the size is big enough

    the size in byte:

    8bit mono:width*height

    16bit mono:width*height*2

    RGB24:width*height*3

int iWaitms, this API will block and wait iWaitms to get one image. the unit is ms -1 means wait forever. this value is recommend set to exposure*2+500ms return:

ASI_SUCCESS : Operation is successful

ASI_ERROR_CAMERA_CLOSED : camera didn't open

ASI_ERROR_INVALID_ID :no camera of this ID is connected or ID value is out of boundary

ASI_ERROR_TIMEOUT: no image get and timeout

*************************/

ASICAMERA_API ASI_ERROR_CODE ASIGetVideoData(int iCameraID, unsigned char* pBuffer, long lBuffSize, int iWaitms);

/*************************

2020-04-05 06:02:50 -0600 received badge  Scholar (source)
2020-04-05 04:56:29 -0600 commented answer VideoCapture from unsupported API

Thanks for the response. How would I go about displaying this? Create a window then could I use imshow?

2020-04-05 03:44:02 -0600 asked a question VideoCapture from unsupported API

VideoCapture from unsupported API I have two cameras which have their own API which isn’t supported amongst the VideoCap

2020-03-05 10:40:50 -0600 asked a question imshow() not working in while loop

Imshow not working in while loop I am truing to write an imshow command in a while loop which is part of a void thread b

2019-11-05 12:21:04 -0600 commented answer Subtracting data for NDVI

What would you recommend as the ideal way to get NDVI. Which single camera or combination would be the best way of getti

2019-11-05 03:25:12 -0600 asked a question Subtracting data for NDVI

Subtracting data for NDVI I am trying to calculate ndvi from two images (one RGB and one from an NOIR camera), with thee