Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otCamera Class Reference
[Camera device driverCamera device driver]

Camera device driver.

#include <otCamera.h>


Public Types

enum  CameraType { CM_STANDARD, CM_CELERA, CM_TIZIANO }

Public Member Functions

 otCamera ()
void init (U8 camId)
void grab (otImage &img, int timerId=-1, bool adjust=true)
void grabStart (otImage &img, int timerId=-1)
bool grabIsDone (otImage &img, int timerId=-1)
void standby (bool ena)
void dataAlignment (otImage &image)


Member Enumeration Documentation

enum otCamera::CameraType
 

Enumeration values:
CM_STANDARD  752x480 6x6 um 10bit 60 fps
CM_CELERA  640x480 9.9x9.9 um 10bit 250 fps
CM_TIZIANO  1280x1024 4.8x4.8 um 10bit 37 fps


Constructor & Destructor Documentation

otCamera.otCamera  ) 
 

Create the class


Member Function Documentation

void otCamera.dataAlignment otImage image  ) 
 

This function is used only with the TIZIANO camera. Unfortunately the PYTHON1300 sensor, used on the TIZIANO camera, produces in output a sequence of digitized pixels not with the expected order. See the chapter DATA OUTPUT FORMAT on the data sheet. This function remedies this problem. This feature has a very heavy impact on processing times, for critical cases use on a higher performing remote system. By setting the processor to an operating frequency of 525MHz with a peripheral frequency of 131MHz, we obtain a capture time at full resolution (1280x1024) of 22.5 ms, while it takes 136 ms to correct it.

Parameters:
image Image class pointer

void otCamera.grab otImage img,
int  timerId = -1,
bool  adjust = true
 

Grab an image(s) according to img class set

Parameters:
img Image class pointer
timerId Timer identifier, used to evaluate FPS
adjust Adjust data on Tiziano camera module

bool otCamera.grabIsDone otImage img,
int  timerId = -1
 

Return true if the starting image grab is done.

Parameters:
img Image class pointer
timerId Timer identifier, used to evaluate FPS

void otCamera.grabStart otImage img,
int  timerId = -1
 

Begins capturing an image but does not wait for it to complete.

Parameters:
img Image class pointer
timerId Timer identifier, used to evaluate FPS

void otCamera.init U8  camId  ) 
 

Init the library

Parameters:
camId Camera identifier

void otCamera.standby bool  ena  ) 
 

Set camera power down or restart it

Parameters:
ena True to enable power down


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0