Skip to content

Latest commit

 

History

History
 
 

data_acquisition

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

How to collect the data for your own android devices is illustrated here.

1. prepare your camera as follows:

2. Calibrate the environment illuminance

  • Download the Android Debug Bridge (ADB) to your laplop, and link your camera with your laptop.

  • Please ensure ADB is in the system parameters of your laptop.

  • Shooting the pure white scene by:

python data_capture.py -n 1 -t 1.5
  • Pull the raw whiteboard image from camera to your laptop:

adb pull ~/DCIM/Camera/whiteboard.dng ~/whiteboard
  • Download the dcraw and ensure dcraw is in the system parameters.

  • Postprocessing the captured whiteboard raw image with dcraw:

dcraw -v -4 -T -w -n 300 -q 3 -o 0 ~/whiteboard/whiteboard.dng
  • Calibrate the environment illuminance:

python env_illuminance.py -i ~/whiteboard/whiteboard.tiff -o ~/env_illu.mat -p 100

3. Checkerboard capture and postprocessing

  • Capture the checkerboard by:

python data_capture.py -n 7 -t 1.5
  • Pull the raw image from camera to your laptop:

adb pull -r ~/DCIM/Camera/*.dng ~/rawdata
  • Postprocessing the captured raw images by:

python post_processing.py -i ~/rawdata -n 7 -e ~/env_illu.mat -d 1.0

The 16-bit image is saved in the same directory of rawdata, named with "*_out.tiff"