Skip to content

Latest commit

 

History

History
69 lines (61 loc) · 2.34 KB

tutorial.MD

File metadata and controls

69 lines (61 loc) · 2.34 KB

Use Case

  1. Compute camara intrinsic parameters using checker board images (save in meta)

    hexa = openHexa.imgProcess.hexa_process()
    hexa.calibrate(imgpath_checker=PATHCHECKER, corner_w=CORNER_WIDTH,
                   corner_h=CORNER_HEIGHT, metafile=METAPATH, separator=SEPARATOR)
    

    PATHCHECKER: Directory of checker images, METAPATH: Directory to save meta data, SEPARATOR: delimiter, ACTUAL_DIM: actual diameter of circle

  2. Undistort images using camera intrinsic parameters (only once)

    hexa = openHexa.imgInstance.hexa_img()
    hexa.load_img(filepath = IMGFILE, metapath=METAPATH, separator = SEPARATOR)
    hexa.undistort()
    

    IMGFILE: image to undistort, METAPATH: Location of meta data, SEPARATOR: delimiter

  3. Compute ratio of pixel to mm (save in meta)

    hexa = openHexa.imgProcesshexa_process()
    hexa.compute_px_ratio(filepath=INPUT, metapath=METAPATH, separator=SEPARATOR, actual_dim=ACTUAL_DIM)
    

    INPUT: image file, METAPATH: Directory to save meta data, SEPARATOR: delimiter, ACTUAL_DIM: actual diameter of circle

  4. Estimate the actual area of plants using segmentation mask and pixel to mm

    hexa.undistort().segment(config_file=CONFIG,checkpoint_file=CHECKPOINT, show = True, pallete_path=".").compute_area()
    

    After undistortion, apply semantic segmentation. By using the segmentation mask, compute area.

  5. Tracking the growth of plants (video)

    hexa.document(areas)
    
  6. Reconstruct plant models using camera parameters
    TBD

Demo

  1. Image undistortion.

2. Compute ratio of pixel to mm

3. Image Segmentation

4. Plant Growth

  1. 3D reconstruction

Nameing rule of cameras

{location}-{camera_code}-{epoch time}.{format}

camera_code may (or may not) contain "-" in the file name. "-" could be replaced by changing "SEPARATOR" value.