📚
DLIP
  • Introduction
  • Prerequisite
  • Image Processing Basics
    • Notes
      • Thresholding
      • Spatial Filtering
      • Masking with Bitwise Operation
      • Model n Calibration
    • Tutorial
      • Tutorial: Install OpenCV C++
      • Tutorial: Create OpenCV Project
      • Tutorial: C++ basics
      • Tutorial: OpenCV Basics
      • Tutorial: Image Watch for Debugging
      • Tutorial: Spatial Filter
      • Tutorial: Thresholding and Morphology
      • Tutorial: Camera Calibration
      • Tutorial: Color Image Processing
      • Tutorial: Edge Line Circle Detection
      • Tutorial: Corner Detection and Optical Flow
      • Tutorial: OpenCV C++ Cheatsheet
      • Tutorial: Installation for Py OpenCV
      • Tutorial: OpenCv (Python) Basics
    • LAB
      • Lab Report Template
      • Lab Report Grading Criteria
      • LAB Report Instruction
      • LAB: Grayscale Image Segmentation
        • LAB: Grayscale Image Segmentation -Gear
        • LAB: Grayscale Image Segmentation - Bolt and Nut
      • LAB: Color Image Segmentation
        • LAB: Facial Temperature Measurement with IR images
        • LAB: Magic Cloak
      • LAB: Straight Lane Detection and Departure Warning
      • LAB: Dimension Measurement with 2D camera
      • LAB: Tension Detection of Rolling Metal Sheet
  • Deep Learning for Perception
    • Notes
      • Lane Detection with Deep Learning
      • Overview of Deep Learning
        • Object Detection
        • Deep Learning Basics: Introduction
        • Deep Learning State of the Art
        • CNN, Object Detection
      • Perceptron
      • Activation Function
      • Optimization
      • Convolution
      • CNN Overview
      • Evaluation Metric
      • LossFunction Regularization
      • Bias vs Variance
      • BottleNeck Unit
      • Object Detection
      • DL Techniques
        • Technical Strategy by A.Ng
    • Tutorial - PyTorch
      • Tutorial: Install PyTorch
      • Tutorial: Python Numpy
      • Tutorial: PyTorch Tutorial List
      • Tutorial: PyTorch Example Code
      • Tutorial: Tensorboard in Pytorch
      • Tutorial: YOLO in PyTorch
        • Tutorial: Yolov8 in PyTorch
        • Tutorial: Train Yolo v8 with custom dataset
          • Tutorial: Train Yolo v5 with custom dataset
        • Tutorial: Yolov5 in Pytorch (VS code)
        • Tutorial: Yolov3 in Keras
    • LAB
      • Assignment: CNN Classification
      • Assignment: Object Detection
      • LAB: CNN Object Detection 1
      • LAB: CNN Object Detection 2
      • LAB Grading Criteria
    • Tutorial- Keras
      • Train Dataset
      • Train custom dataset
      • Test model
      • LeNet-5 Tutorial
      • AlexNet Tutorial
      • VGG Tutorial
      • ResNet Tutorial
    • Resource
      • Online Lecture
      • Programming tutorial
      • Books
      • Hardware
      • Dataset
      • Useful sites
  • Must Read Papers
    • AlexNet
    • VGG
    • ResNet
    • R-CNN, Fast-RCNN, Faster-RCNN
    • YOLOv1-3
    • Inception
    • MobileNet
    • SSD
    • ShuffleNet
    • Recent Methods
  • DLIP Project
    • Report Template
    • DLIP 2021 Projects
      • Digital Door Lock Control with Face Recognition
      • People Counting with YOLOv4 and DeepSORT
      • Eye Blinking Detection Alarm
      • Helmet-Detection Using YOLO-V5
      • Mask Detection using YOLOv5
      • Parking Space Management
      • Vehicle, Pedestrian Detection with IR Image
      • Drum Playing Detection
      • Turtle neck measurement program using OpenPose
    • DLIP 2022 Projects
      • BakeryCashier
      • Virtual Mouse
      • Sudoku Program with Hand gesture
      • Exercise Posture Assistance System
      • People Counting Embedded System
      • Turtle neck measurement program using OpenPose
    • DLIP Past Projects
  • Installation Guide
    • Installation Guide for Pytorch
      • Installation Guide 2021
    • Anaconda
    • CUDA cuDNN
      • CUDA 10.2
    • OpenCV
      • OpenCV Install and Setup
        • OpenCV 3.4.13 with VS2019
        • OpenCV3.4.7 VS2017
        • MacOS OpenCV C++ in XCode
      • Python OpenCV
      • MATLAB-OpenCV
    • Framework
      • Keras
      • TensorFlow
        • Cheat Sheet
        • Tutorial
      • PyTorch
    • IDE
      • Visual Studio Community
      • Google Codelab
      • Visual Studio Code
        • Python with VS Code
        • Notebook with VS Code
        • C++ with VS Code
      • Jupyter Notebook
        • Install
        • How to use
    • Ubuntu
      • Ubuntu 18.04 Installation
      • Ubuntu Installation using Docker in Win10
      • Ubuntu Troubleshooting
    • ROS
  • Programming
    • Python_Numpy
      • Python Tutorial - Tips
      • Python Tutorial - For Loop
      • Python Tutorial - List Tuple, Dic, Set
    • Markdown
      • Example: API documentation
    • Github
      • Create account
      • Tutorial: Github basic
      • Tutorial: Github Desktop
    • Keras
      • Tutorial Keras
      • Cheat Sheet
    • PyTorch
      • Cheat Sheet
      • Autograd in PyTorch
      • Simple ConvNet
      • MNIST using LeNet
      • Train ConvNet using CIFAR10
  • Resources
    • Useful Resources
    • Github
Powered by GitBook
On this page
  • I. Introduction
  • Problem Conditions
  • II. Procedure
  • III. Report and Demo Video

Was this helpful?

  1. Image Processing Basics
  2. LAB

LAB: Dimension Measurement with 2D camera

PreviousLAB: Straight Lane Detection and Departure WarningNextLAB: Tension Detection of Rolling Metal Sheet

Last updated 1 year ago

Was this helpful?

I. Introduction

A company wants to measure the whole dimension of a rectangular object with a smartphone.

You are asked to make an image processing algorithm for an accurate volume measurement of the small object.

What Software Do I Need with a Leica 3D Imager?
147 Ar Tape Images, Stock Photos, 3D objects, & Vectors | Shutterstock

Problem Conditions

  • Measure the 3D dimensions (LxWxH) of a small rectangular object

  • Assume you know the exact width (W) of the target object. You only need to find L and H.

  • The accuracy of the object should be within 3mm

  • You can only use a smartphone (webcam) 2D camera for sensors. No other sensors.

  • You cannot know the exact pose of the camera from the object or the table.

  • You can use other known dimension objects, such as A4-sized paper, check-board, small square boxes etc

  • Try to make the whole measurement process to be as simple, and convenient as possible for the user

    • Using fewer images, using fewer reference objects, etc

II. Procedure

  1. First, understand fully about the design problem.

  2. Design the algorithm flow

    • Calibration, Segment the object from the background, Finding corners etc

  3. You can use additional reference objects such as A4 paper, known-sized rectangular objects, etc.

    • you will get a higher point if you use the reference object as simple as possible.

  4. You must state all the additional assumptions or constraints to make your algorithm work.

    • You are free to add assumptions and constraints such as the reference object can be placed in parallel to the target block etc

    • But, you will get a higher point if you use fewer constraints/assumptions.

  5. Use your webcam or smartphone to capture image(s)

    • Use the given experimental setting of the background and 3D object.

  1. Measure each dimension of the test rectangular object.

    • The exact width (W) of the target object is given.

    • Measure only Height and Length

  2. The output image or video should display the measurement numbers.

  3. Your algorithm will be validated with other similar test object

III. Report and Demo Video

Lab Report:

  • Show what you have done with concise explanations and example results of each necessary process

  • In the appendix, show your source code.

  • Submit in both PDF and the original file (*.md etc)

Demo Video:

  • Create a demo video with a title page showing the course name, data, and your names

  • Submit the file on LMS

Source Code:

  • Zip all the necessary source files.

  • Only the source code files. Do not submit image files, project files etc.