Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions app.log
Original file line number Diff line number Diff line change
Expand Up @@ -48212,3 +48212,21 @@ WHERE camera."Cam_id" = ? AND camera.user_id = ?
2025-09-27 15:45:27,947 - INFO - 127.0.0.1 - - [27/Sep/2025 15:45:27] "GET /video_feed/10.225.231.18:8080 HTTP/1.1" 200 -
2025-09-27 15:45:46,803 - WARNING - No frames received from camera ID 10.225.231.18:8080.
2025-09-27 15:54:39,798 - INFO - * Detected change in 'S:\\CODE\\GitHub OpenSource\\IndShield\\app.py', reloading
2025-09-29 14:43:14,689 - DEBUG - matplotlib data path: C:\GSSOC\IndShield\venv\lib\site-packages\matplotlib\mpl-data
2025-09-29 14:43:14,695 - DEBUG - CONFIGDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:14,697 - DEBUG - interactive is False
2025-09-29 14:43:14,697 - DEBUG - platform is win32
2025-09-29 14:43:14,764 - DEBUG - CACHEDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:14,770 - DEBUG - Using fontManager instance from C:\Users\019176\.matplotlib\fontlist-v390.json
2025-09-29 14:43:15,648 - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
2025-09-29 14:43:15,648 - INFO - Press CTRL+C to quit
2025-09-29 14:43:15,652 - INFO - * Restarting with stat
2025-09-29 14:43:18,312 - DEBUG - matplotlib data path: C:\GSSOC\IndShield\venv\lib\site-packages\matplotlib\mpl-data
2025-09-29 14:43:18,317 - DEBUG - CONFIGDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:18,318 - DEBUG - interactive is False
2025-09-29 14:43:18,319 - DEBUG - platform is win32
2025-09-29 14:43:18,369 - DEBUG - CACHEDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:18,373 - DEBUG - Using fontManager instance from C:\Users\019176\.matplotlib\fontlist-v390.json
2025-09-29 14:43:19,005 - WARNING - * Debugger is active!
2025-09-29 14:43:19,010 - INFO - * Debugger PIN: 131-335-467
19 changes: 17 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,25 @@ def manage_employees_route():
def face_auth_page():
return render_template('face_auth.html')


def get_contributors():
"""Fetches contributor data from the GitHub API."""
owner = 'SurajSanap'
repo = 'IndShield'
url = f"https://api.github.com/repos/{owner}/{repo}/contributors"

try:
response = requests.get(url)
response.raise_for_status() # Raise an error for bad responses (4xx or 5xx)
return response.json()
except requests.exceptions.RequestException as e:
print(f"Error fetching contributors: {e}")
return []

@app.route('/about')
def about():
return render_template('about.html')

contributors_data = get_contributors()
return render_template('about.html', contributors=contributors_data)

# ML processing functions
def add_to_db(results, frame, alert_name, user_id=None):
Expand Down
18 changes: 18 additions & 0 deletions error.log
Original file line number Diff line number Diff line change
Expand Up @@ -48212,3 +48212,21 @@ WHERE camera."Cam_id" = ? AND camera.user_id = ?
2025-09-27 15:45:27,947 - INFO - 127.0.0.1 - - [27/Sep/2025 15:45:27] "GET /video_feed/10.225.231.18:8080 HTTP/1.1" 200 -
2025-09-27 15:45:46,803 - WARNING - No frames received from camera ID 10.225.231.18:8080.
2025-09-27 15:54:39,798 - INFO - * Detected change in 'S:\\CODE\\GitHub OpenSource\\IndShield\\app.py', reloading
2025-09-29 14:43:14,689 - DEBUG - matplotlib data path: C:\GSSOC\IndShield\venv\lib\site-packages\matplotlib\mpl-data
2025-09-29 14:43:14,695 - DEBUG - CONFIGDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:14,697 - DEBUG - interactive is False
2025-09-29 14:43:14,697 - DEBUG - platform is win32
2025-09-29 14:43:14,764 - DEBUG - CACHEDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:14,770 - DEBUG - Using fontManager instance from C:\Users\019176\.matplotlib\fontlist-v390.json
2025-09-29 14:43:15,648 - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
2025-09-29 14:43:15,648 - INFO - Press CTRL+C to quit
2025-09-29 14:43:15,652 - INFO - * Restarting with stat
2025-09-29 14:43:18,312 - DEBUG - matplotlib data path: C:\GSSOC\IndShield\venv\lib\site-packages\matplotlib\mpl-data
2025-09-29 14:43:18,317 - DEBUG - CONFIGDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:18,318 - DEBUG - interactive is False
2025-09-29 14:43:18,319 - DEBUG - platform is win32
2025-09-29 14:43:18,369 - DEBUG - CACHEDIR=C:\Users\019176\.matplotlib
2025-09-29 14:43:18,373 - DEBUG - Using fontManager instance from C:\Users\019176\.matplotlib\fontlist-v390.json
2025-09-29 14:43:19,005 - WARNING - * Debugger is active!
2025-09-29 14:43:19,010 - INFO - * Debugger PIN: 131-335-467
Binary file added models/__pycache__/config_loader.cpython-310.pyc
Binary file not shown.
Binary file modified models/__pycache__/fire_detection.cpython-310.pyc
Binary file not shown.
Binary file modified models/__pycache__/gear_detection.cpython-310.pyc
Binary file not shown.
Binary file modified models/__pycache__/motion_amp.cpython-310.pyc
Binary file not shown.
Binary file modified models/__pycache__/pose_detection.cpython-310.pyc
Binary file not shown.
Binary file modified models/__pycache__/r_zone.cpython-310.pyc
Binary file not shown.
100 changes: 49 additions & 51 deletions templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,65 +3,63 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us</title>
<link rel="stylesheet" href="/static/css/about.css">
<script src="https://kit.fontawesome.com/ec53c9ed31.js" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>About IndShield</title>

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.lineicons.com/4.0/lineicons.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="stylesheet" href="static/css/style_dash.css">

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">

<link rel="stylesheet" href="{{ url_for('static', filename='css/style_dash.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/about.css') }}">

<script src="https://kit.fontawesome.com/ec53c9ed31.js" crossorigin="anonymous"></script>
</head>
<body>

{% include 'sidebar.html' %}
<div class="container">
<h1>Project Showcase</h1>

<div class="product-showcase">
<div class="product">
<img src="indshield_product_image.jpg" alt="IndShield Product">
<h2>IndShield: Enhancing Industrial Safety</h2>
<p>IndShield is a web application that integrates cutting-edge technologies to ensure enhanced safety in industrial environments, offering real-time monitoring, emergency alerts, and advanced safety protocols.</p>
<a href="https://github.com/yourusername/indshield" target="_blank"><i class="fa fa-link"></i> Learn More</a>
</div>
</div>
<div class="wrapper">
{% include 'sidebar.html' %} <div class="main p-3">
<div class="container">
<div class="project-overview text-center mb-5">
<h1 class="display-4">About IndShield</h1>
<p class="lead">An intelligent solution for enhancing industrial safety through real-time monitoring, emergency alerts, and advanced safety protocols.</p>
</div>

<div class="about-me">
<h1>About Me</h1>
<p>Hi! I'm Suraj Sanap, a passionate developer with expertise in AI, Machine Learning, and building web applications. I love solving real-world problems using innovative technologies.</p>
<p>Connect with me:</p>
<ul>
<li><a href="https://github.com/surajsanap" target="_blank">GitHub</a></li>
<li><a href="https://linkedin.com/in/surajsanap" target="_blank">LinkedIn</a></li>
</ul>
</div>
<div class="row mb-5">
<div class="col-md-6">
<h3><i class="fas fa-bullseye"></i> Our Mission</h3>
<p>Our mission is to create a safer industrial future by leveraging cutting-edge technology to prevent accidents before they happen. We aim to provide an accessible and powerful tool that empowers organizations to protect their workforce.</p>
</div>
<div class="col-md-6">
<h3><i class="fas fa-star"></i> Key Features</h3>
<ul>
<li>Real-time safety monitoring via video streams.</li>
<li>Automated detection of safety gear violations.</li>
<li>Instantaneous emergency alert system.</li>
<li>Data-driven dashboard for safety analytics.</li>
</ul>
</div>
</div>

<div class="contributors">
<h1>Contributors</h1>
<p>A big thank you to all the contributors who made this project possible!</p>
<div class="contributor">
<a href="https://github.com/SurajSanap" target="_blank">
<img src="https://via.placeholder.com/150" alt="Contributor 1">
<p>Contributor 1</p>
</a>
<div class="contributors-section">
<h2 class="text-center mb-4">🏆 Our Contributors</h2>
<p class="text-center text-muted">This project is made possible by these amazing people. Thank you!</p>

<div class="contributors-grid">
{% for contributor in contributors %}
<div class="contributor-card">
<a href="{{ contributor.html_url }}" target="_blank" rel="noopener noreferrer">
<img src="{{ contributor.avatar_url }}" alt="Avatar for {{ contributor.login }}" class="contributor-avatar">
<p class="contributor-name">{{ contributor.login }}</p>
</a>
</div>
{% else %}
<p class="text-center">Could not load contributor information at this time.</p>
{% endfor %}
</div>
</div>
</div>
<div class="contributor">
<a href="https://github.com/contributor2" target="_blank">
<img src="https://via.placeholder.com/150" alt="Contributor 2">
<p>Contributor 2</p>
</a>
</div>
<!-- Add more contributors as needed -->
</div>


</div>

<script src="/static/js/about.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
</body>
</html>
</html>