Skip to content

jubaer-pantho/event-camera-simulator

Repository files navigation

event-camera-simulator

This is python-based simulator for an event-camera. The simulator draws visual attention on a region-level. This indicates that instead of identifying events for each pixel, the design flow labels each region based on the spatio-temporal relevance.

============== PREREQUISITE

Numpy OpenCV Python3.x

============== HOW TO RUN ?

~$ python3 main.py

It will take all the images provided in the image_data/ directory and generate spatial and temporally relevant data separately. Please put your image dataset in the image_data/ directory and pass appropriate function parameters to generate the output.

The relevant data is generated in the *_output folder/.

============== Description

  1. The spatial_redundancy function implements the method to identify spatially redundant regions. Currently, the design has two methods to identify relevant regions. Edge point based relevance detection and statistical method (mean absolute deviation). Two switch between the two function please edit the spatial_op.py file (line 33-34). To add addtional methods please edit the spatial.py file.
  2. The temporal_redundancy function implements the method to identify region-level temporal events.
  3. The method resizes all the incoming images by default as given in the above mentioned function if resize value is 1. The resize parameters can be changed by editing the corresponding lines on the given functions.

============== NOTE

The output images generated by the simulator can be used to train a CNN model for classification and detection task.

Please look at my other repository to see how the custom datasets can be used for training a classifier:

https://github.com/jubaer-pantho/transfer-learning-CNN

To use the custom dataset on the pretrained YOLOv3 object detector use the following repository:

https://github.com/jubaer-pantho/yolo-v3-full-tiny

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages