Difference between revisions of "RawImage"
From ElphelWiki
JavierRojas (talk | contribs) |
|||
Line 3: | Line 3: | ||
However, I am having some problems doing this: | 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) | #. 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.''--[[User:Andrey.filippov|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 | #. 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''--[[User:Andrey.filippov|Andrey.filippov]] 01:26, 13 June 2008 (CDT) |
Revision as of 22:26, 12 June 2008
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)