ZM Little Challenge
In this connected component analysis challenge, you will be asked to write a simple script find the bounding boxes of the objects in an image, as shown in Figure 1. An object is defined as a continuous "Blob" of non-black pixels.
Read in data.bin
, which contains an array of unsigned char
numbers (0 - 255), which holds image frames with shape (10, 600, 800). Each image is stored in row-major format.
Implement an algorithm that identifies the bounding boxes of the objects in each image frame.
Figure 1. Detected Objects |
---|
- Accurate number of bounding boxes
- Accurate positions and sizes
- High performance (please use the macro provided to measure running time)
- Bug free
Don't use any third party library to implement the algorithm (you can do better than them). However, you can use any tool to visualise the images for debugging purposes.
pip install -r requirements.txt"
python ZMTest01.py
In the src folder, there are other algorithms that can solve this problem.
output folder stores debugging images