static PyObject *ids_core_Camera_getfps(ids_core_Camera *self, void *closure) {
    int ret;
    double dblfps;

    ret = is_GetFramesPerSecond(self->handle, &dblfps);
    switch (ret) {
        case IS_SUCCESS:
            return PyFloat_FromDouble(dblfps);
        default:
            PyErr_SetString(PyExc_ValueError, "An error occurred when getting fps.");
            return PyLong_FromLong(-1);
    }
}
Beispiel #2
0
//////////////////////////////////////////////////////////////////////////////////
// getFPS ------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////////
double ofxUeye::getFPS()
{
	double fps;
	is_GetFramesPerSecond (m_hCam, &fps);
	return fps;
}