Skip to content

Jageshwar01/Digital-Target-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฏ Jabarjast Shooting Scorer โ€“ Digital Target Machine

A professional-grade digital target scoring system for 10m Air Rifle shooting โ€” built from scratch with custom Raspberry Pi 4 hardware and a full desktop PC application. More accurate and reliable than systems currently used in Indian shooting clubs.


๐Ÿ“ธ Screenshots

Start Match_Screen Random_Shot

๐Ÿ† Overview

Jabarjast Shooting Scorer is a complete hardware + software solution that replaces manual target scoring in competitive Air Rifle shooting. A Raspberry Pi 4 with camera detects exactly where each bullet hits the target in real time, and the PC desktop application built with Electron.js displays the score instantly with full match management.

Electronic target systems used in Indian shooting clubs are either too expensive or imported from other countries โ€” putting them out of reach for most clubs and individual shooters. Jabarjast Shooting Scorer solves this with a Made in India, low-cost, high-accuracy alternative built on Raspberry Pi 4 with custom mathematical algorithms for precise shot detection.

Built by a national-level Air Rifle competitor to solve a real problem โ€” currently actively used at CRSC Club for training and competition. Designed to be shooter-friendly, club-friendly, and easy to use for everyone.


๐Ÿ‡ฎ๐Ÿ‡ณ Why This Matters

Most shooting clubs in India cannot afford imported electronic target systems. The ones that can afford them depend on foreign manufacturers for support and spare parts.

Jabarjast Shooting Scorer changes this:

  • ๐Ÿญ Made in India โ€” built entirely with locally available hardware
  • ๐Ÿ’ฐ Fraction of the cost โ€” Raspberry Pi 4 vs expensive imported systems
  • ๐ŸŽฏ High accuracy โ€” custom mathematical algorithms for precise shot coordinate detection
  • ๐Ÿ”ง Easy to maintain โ€” any local technician can repair or replace components
  • ๐Ÿค Club & shooter friendly โ€” designed with real shooter feedback, not corporate specs
  • ๐Ÿ“ฆ Complete ecosystem โ€” hardware + software + match management all in one
  • ๐Ÿ‡ฎ๐Ÿ‡ณ Atma Nirbhar Bharat โ€” reducing dependency on imported sports technology

โœจ Features

  • ๐ŸŽฏ Real-time shot detection โ€” Raspberry Pi 4 camera detects bullet impact position instantly
  • ๐Ÿ“Š Live score display โ€” score shown immediately after each shot (e.g. 9.6, 9.7, 10.0)
  • โญ Inner 10 detection โ€” automatically identifies and marks Inner 10 shots with star rating
  • ๐Ÿ“ˆ Series tracking โ€” tracks performance across multiple series (10 shots each)
  • ๐Ÿ—บ๏ธ Shot grouping visualization โ€” color-coded shot positions displayed on target diagram
  • ๐Ÿ“‹ Match management โ€” full match control with pause, resume, and series navigation
  • ๐Ÿ“„ Reports generation โ€” detailed match reports for performance analysis
  • โฑ๏ธ Shot interval & time series โ€” timing analysis between shots
  • ๐Ÿ›๏ธ Club management โ€” supports multiple club profiles (e.g. CRSC Club)
  • ๐Ÿ’พ Match history โ€” stores and retrieves past match data
  • ๐Ÿ–ฅ๏ธ Desktop app โ€” runs on Windows PC, no internet required

๐Ÿ› ๏ธ Tech Stack

Layer Technology
Hardware Raspberry Pi 4
Detection Camera Module + C++ image processing
Desktop App Electron.js
Frontend UI React + TypeScript
Build Tool Webpack
Database Local (SQLite/JSON)
Platform Windows Desktop

๐Ÿ—๏ธ System Architecture

[Air Rifle Target]
       โ”‚
       โ–ผ
[Raspberry Pi 4 + Camera] โ”€โ”€โ–บ [C++ Image Processing] โ”€โ”€โ–บ [Shot Detection & Coordinates]
                                                                      โ”‚
                                                                      โ–ผ
                                                        [Electron.js Desktop App]
                                                                      โ”‚
                                              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                                              โ–ผ                       โ–ผ                   โ–ผ
                                    [Target Visualizer]      [Score Display]      [Match Manager]

๐ŸŽฎ How It Works

  1. Raspberry Pi 4 with camera module is mounted facing the target
  2. C++ image processing detects the bullet hole position with high precision
  3. Shot coordinates are sent to the Electron.js desktop application in real time
  4. The app calculates the exact score (e.g. 9.6, Inner 10) based on hole position
  5. Shot is displayed on the target visualization with its number and position
  6. Series scores are tracked and totalled automatically
  7. Coach or athlete can view reports, shot intervals, and time series analysis at any time

๐Ÿ“Š Scoring System

Zone Score
Bullseye (Inner) 10.9
10 Ring 10.0 โ€“ 10.8
9 Ring 9.0 โ€“ 9.9
8 Ring 8.0 โ€“ 8.9
... ...
  • โญ Inner 10 automatically flagged with gold star
  • ๐Ÿ”ด Current shot highlighted in red
  • ๐ŸŸข Previous shots shown in green with shot number

๐Ÿงฎ Algorithm & Accuracy

The shot detection system uses custom mathematical algorithms for high-precision bullet hole coordinate detection:

  • Camera captures the target after each shot
  • Image processing isolates the new bullet hole from previous shots
  • Mathematical calculations convert pixel coordinates to exact ring position
  • Score is calculated to one decimal place (e.g. 9.6, 10.3)
  • Inner 10 detection uses precise radius thresholds
  • Algorithm is optimized for accuracy under different lighting conditions

This approach achieves accuracy comparable to expensive imported systems at a fraction of the cost.


โš ๏ธ Current Limitations & Roadmap

Current Version โ€” Camera Based

The current version uses a Raspberry Pi 4 camera for shot detection. While functional and accurate, this has known limitations compared to professional systems used by NRAI:

  • Sensitive to lighting conditions
  • Requires careful camera positioning and calibration
  • Different from the acoustic/optical sensor systems used in official competitions

This was an acknowledged tradeoff โ€” camera approach chosen due to budget constraints as a solo student developer with no team and no external funding.

๐Ÿš€ Next Version โ€” In Development

Currently working on a non-camera based detection system closer to NRAI-standard electronic targets:

  • Acoustic or optical sensor-based bullet detection
  • More reliable under all lighting conditions
  • Closer to international competition standards

A single student with no budget built something that works. The journey to make it world-class continues.


  • Raspberry Pi 4 (4GB or 8GB recommended)
  • Raspberry Pi Camera Module
  • 10m Air Rifle Target (standard ISSF)
  • Windows PC for desktop application
  • Network connection between Pi and PC (LAN/WiFi)
  • Power supply for Raspberry Pi

๐Ÿš€ Getting Started

Hardware Setup

  1. Mount Raspberry Pi 4 with camera facing the target
  2. Calibrate camera position for accurate shot detection
  3. Connect Raspberry Pi to the same network as PC
  4. Run C++ detection script on Raspberry Pi

PC App Setup

git clone https://github.com/Jageshwar01/Digital-Target-Machine.git
cd Digital-Target-Machine
npm install
npm start

Build for Production

npm run build
npm run electron-build

๐Ÿ“Š Project Status

Component Status
Raspberry Pi 4 Hardware Setup โœ… Complete
C++ Shot Detection โœ… Complete
Electron.js Desktop App โœ… Complete
Real-time Score Display โœ… Complete
Inner 10 Detection โœ… Complete
Series & Match Tracking โœ… Complete
Reports Generation โœ… Complete
Shot Interval Analysis โœ… Complete
Club Management โœ… Complete
Field Testing at CRSC Club โœ… Complete & In Active Use

๐Ÿ†š Jabarjast vs Current Solutions in India

Feature Jabarjast Shooter Manual Scoring Imported Electronic Targets
Score display speed Instant 30โ€“60 seconds Instant
Accuracy High โ€” custom math algorithms Human eye estimation High
Shot visualization Full digital target Physical paper Yes
Series tracking Automatic Manual calculation Yes
Reports Auto generated Manual writing Yes
Cost Very low (Raspberry Pi) Nil Very expensive
Made in India โœ… Yes โ€” โŒ No
Club affordable โœ… Yes โœ… Yes โŒ No
Local maintenance โœ… Easy โœ… Easy โŒ Difficult
Custom algorithm โœ… Yes โ€” Unknown

๐ŸŒ Impact

  • Actively deployed and used at CRSC Club for real training sessions
  • Provides high accuracy shot detection using custom mathematical algorithms โ€” comparable to expensive imported systems
  • Made in India at a fraction of the cost of foreign electronic target systems
  • Makes professional-grade target scoring accessible to every shooting club in India
  • Reduces India's dependency on imported shooting sports technology
  • Built by a Gold Medal state-level and national-level Air Rifle competitor who understands exactly what shooters and clubs need
  • Designed with a complete ecosystem โ€” hardware, software, match management, and reports โ€” all in one affordable package

๐Ÿ‘จโ€๐Ÿ’ป Developer

Jageshwer Vishwakarma


๐Ÿ“„ License

This project is open source and available under the MIT License.


Built by a shooter, for shooters. If this helped your club, give it a โญ

About

A professional-grade digital target scoring system for 10m Air Rifle/Pistol shooting sports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors