RawImage

From ElphelWiki
Jump to: navigation, search

The raw sensor data can be obtained on the 353 camera by reading from the /dev/ccam_img file.

However, I am having some problems doing this:

 #. Trying to read from /dev/ccam_img right after booting the camera causes the reading process (I've tried dd and cat) to take all the CPU and block. Only after opening the web page of the camera (192.168.0.9) the proccess finishes (with error :( read error: invalid argument)

Yes, it is supposed to be so. Sensor is not detected/programmed until it is accessed, and /dev/ccam_img relies on something else to detect and initialize the sensor. It just provides access to the intermediate result of the last acquired image.--Andrey.filippov 01:26, 13 June 2008 (CDT)

 #. Once I get the raw sensor data and convert it to an image (a PNG), I get the expected picture... sometimes. See URL for the results

If the image acquisition is not stopped, you may get part of the image from one frame, and the other part - from the next one. In default configuration data from the sensor is continuously acquired to the memory attached to the FPGA--Andrey.filippov 01:26, 13 June 2008 (CDT)