Giter VIP home page Giter VIP logo

bullet-impression-detection's Introduction

Bullet Impression Detection

Objectives

Determine bullet holes from firing target paper which will in return help to determine the MPI and zero any weapon(weapon correction).

Dependencies and Environment Setup

  1. Install python along with pip.
  2. Download the batch file and execute it to install all the dependencies required.

Procedure

  1. Data Collection(Images of Target Paper)
  2. If necessary you change the image resolution using transform_image_resolution.py
  3. Separate 80% of the images to train folder and 20% of the images to test folder.
  4. Label Bullet holes from target paper images(train folder images) using LabelImg and assign class.
  5. Labeling the images will generate .xml file for each image. We need to convert all these .xml files to .csv files executing xml_to_csv.bat
  6. Convert .csv file to .record file executing generate_tfrecords.bat
  7. Finally need to train the model by executing traincmd.bat file. The user can change the number of steps while training in faster_rcnn_inception_v2_pets.config file at line 113.
  8. About every 5 minutes the current loss gets logged to Tensorboard. We can open Tensorboard by executing open_tensorboard.bat file which will open a webpage at localhost:6006 and display the losses while training. You should train the model until it reaches a satisfying loss. The training process can then be terminated by pressing Ctrl+C.
  9. Now that we have a trained model we need to generate an inference graph, which can be used to run the model. For doing so we need to first of find out the highest saved step number. For this, we need to navigate to the training directory and look for the model.ckpt file with the biggest index. Now need to execute inf_graph_gen.bat file which will generate frozen_inference_graph.pb model at inference_graph folder and finally it will detect bullet holes from target image.

bullet-impression-detection's People

Contributors

echo-akash avatar

Stargazers

cahyo avatar

Watchers

James Cloos avatar  avatar

bullet-impression-detection's Issues

Error when to run the program

Dear Mr Akash Poddar
I'm interested in your Bullet impression detection program and so i try to run it
However, I found some trouble. Please help me.
I'm new for tensorflow and python but I really want to learn. Thanks a lot
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.