From 7148f15a2d11664d38c2ccb86b985aa23db8b37e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 24 Jul 2025 11:29:04 +0530 Subject: [PATCH 1/4] Add scan_logger utility for logging scans --- scan_logger.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 scan_logger.py diff --git a/scan_logger.py b/scan_logger.py new file mode 100644 index 0000000..754edbe --- /dev/null +++ b/scan_logger.py @@ -0,0 +1,41 @@ +import datetime + + +scan_history=[] + + + +def log_scan(caption, user_command): + timestamp=datetime.datetime.now().strftime('%d-%m-%Y,%H:%M:%S') + entry={ + timestamp:"timestamp", + caption: "caption", + user_command:"user_command", + + } + + + scan_history.append(entry) + print("Logged time and data") + + def show_history(): + print("Scan History") + for i,entry in enumerate(scan_history,start=1): + print(f"\n๐Ÿ”น Entry {i}") + print("\n Time:{Entry[timestamp]}") + print("\n Caption:{Entry[caption]}") + print("\n User Command:{Entry[user_command]}") + + + + + #Demonstrating with examples: + log_scan("A Man passing the main road", "Alert User") + log_scan("A family roaming in a busy market","Describe the surroundings") + log_scan("Animal moving freely in the zoo","Describe the surroundings") + + + + #Logs + + show_history() \ No newline at end of file From 3549fe6a1e81718619b92c93290c7a757cfd5c33 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 25 Jul 2025 10:34:23 +0530 Subject: [PATCH 2/4] contributors guide --- contributor.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 contributor.md diff --git a/contributor.md b/contributor.md new file mode 100644 index 0000000..0afc095 --- /dev/null +++ b/contributor.md @@ -0,0 +1,53 @@ +# ๐Ÿ‘ฅ Contribution Guide + +Welcome to the Hall of Fame! ๐Ÿ† + +Every line of code, every bug fix, every pixel of design โ€” it all comes from people like **you**. + +------------------------------------------------------------------------------------------ +**VisionMate** is more than just an AI project โ€” itโ€™s a growing community of learners, builders, and innovators ๐Ÿ’ก. + +๐Ÿง ๐Ÿ’ป๐ŸŽจ๐Ÿš€๐Ÿ’ฌ +From developers to designers to curious first-timers โ€” we see you, we appreciate you, and we welcome you. + +------------------------------------------------------------------------------------------- + + +## ๐Ÿ› ๏ธ Contribution Areas + +You can contribute to: + +๐ŸŽจPython โ€“ Core backend and computer vision +๐Ÿง OpenCV โ€“ Image processing and recognition +๐Ÿ—ƒ๏ธFlask / Django โ€“ Backend framework (to be finalized) +๐Ÿ“ŠReact.js / Flutter โ€“ Frontend or app interface +๐Ÿ“ŠMySQL โ€“ Data storage +๐Ÿ“‹Google Cloud Vision API โ€“ (future integration) +๐Ÿ“‹Text-to-Speech / Speech-to-Text APIs โ€“ Accessibility tools + + +------------------------------------------------------------------------------------------- + +## ๐Ÿš€ Getting Started + + +Follow these steps to contribute to the VisionMate project on your local machine: + +# 1. Fork the Repository +By clicking on the Fork button of the repository, you get access to commit changes and push them in github. + + +# 2. Clone the repository +git clone https://github.com/kaushav07/VisionMate.git + +# 3. Navigate into the project directory +cd VisionMate + +# 4. Install all the required dependencies +pip install -r requirements.txt + + + + +------------------------------------------------------------------------------------------- + From 39f376586858921a8334acdb9f696748d896e1a6 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 31 Jul 2025 10:23:50 +0530 Subject: [PATCH 3/4] Coorected: Scan_Logger --- contributor.md => CONTRIBUTING.md | 0 scan_logger.py | 63 ++++++++++++++----------------- 2 files changed, 29 insertions(+), 34 deletions(-) rename contributor.md => CONTRIBUTING.md (100%) diff --git a/contributor.md b/CONTRIBUTING.md similarity index 100% rename from contributor.md rename to CONTRIBUTING.md diff --git a/scan_logger.py b/scan_logger.py index 754edbe..926fad6 100644 --- a/scan_logger.py +++ b/scan_logger.py @@ -1,41 +1,36 @@ import datetime -scan_history=[] - - +scan_history = [] + # FUNCTION TO LOG SCAN ENTRY def log_scan(caption, user_command): - timestamp=datetime.datetime.now().strftime('%d-%m-%Y,%H:%M:%S') - entry={ - timestamp:"timestamp", - caption: "caption", - user_command:"user_command", - + timestamp = datetime.datetime.now().strftime('%d-%m-%Y, %H:%M:%S') + entry = { + "timestamp": timestamp, # Key = "timestamp", value = current time + "caption": caption, # Key = "caption", value = passed caption + "user_command": user_command # Key = "user_command", value = passed command } - - scan_history.append(entry) - print("Logged time and data") - - def show_history(): - print("Scan History") - for i,entry in enumerate(scan_history,start=1): - print(f"\n๐Ÿ”น Entry {i}") - print("\n Time:{Entry[timestamp]}") - print("\n Caption:{Entry[caption]}") - print("\n User Command:{Entry[user_command]}") - - - - - #Demonstrating with examples: - log_scan("A Man passing the main road", "Alert User") - log_scan("A family roaming in a busy market","Describe the surroundings") - log_scan("Animal moving freely in the zoo","Describe the surroundings") - - - - #Logs - - show_history() \ No newline at end of file + print("โœ… Logged entry successfully!") + +# FUNCTION TO SHOW ALL HISTORY (DEFINED OUTSIDE log_scan) +def show_history(): + if not scan_history: + print("\n๐Ÿ“ญ No scan history available.") + return + + print("\n๐Ÿ“œ Scan History:") + for i, entry in enumerate(scan_history, start=1): + print(f"\n๐Ÿ”น Entry {i}") + print(f" ๐Ÿ•’ Time: {entry['timestamp']}") + print(f" ๐Ÿ–ผ๏ธ Caption: {entry['caption']}") + print(f" ๐Ÿ’ฌ User Command: {entry['user_command']}") + +# DEMO โ€” WRAPPED IN if __name__ == "__main__" +if __name__ == "__main__": + log_scan("A man passing the main road", "Alert User") + log_scan("A family roaming in a busy market", "Describe the surroundings") + log_scan("Animal moving freely in the zoo", "Describe the surroundings") + + show_history() From 48c415d47a5c8ca52f54cf6d210ba67a3ef15fda Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Aug 2025 15:27:04 +0530 Subject: [PATCH 4/4] corrected version:Scan_logger --- scan_logger.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/scan_logger.py b/scan_logger.py index 926fad6..83ec32f 100644 --- a/scan_logger.py +++ b/scan_logger.py @@ -1,20 +1,20 @@ import datetime - +# Global list to store scan history scan_history = [] - # FUNCTION TO LOG SCAN ENTRY +# FUNCTION TO LOG SCAN ENTRY def log_scan(caption, user_command): timestamp = datetime.datetime.now().strftime('%d-%m-%Y, %H:%M:%S') entry = { - "timestamp": timestamp, # Key = "timestamp", value = current time - "caption": caption, # Key = "caption", value = passed caption - "user_command": user_command # Key = "user_command", value = passed command + "timestamp": timestamp, + "caption": caption, + "user_command": user_command } - scan_history.append(entry) - print("โœ… Logged entry successfully!") + scan_history.append(entry) # โœ… Ensures entry is saved + print("โœ… Logged time and data") -# FUNCTION TO SHOW ALL HISTORY (DEFINED OUTSIDE log_scan) +# FUNCTION TO SHOW ALL HISTORY def show_history(): if not scan_history: print("\n๐Ÿ“ญ No scan history available.") @@ -27,10 +27,11 @@ def show_history(): print(f" ๐Ÿ–ผ๏ธ Caption: {entry['caption']}") print(f" ๐Ÿ’ฌ User Command: {entry['user_command']}") -# DEMO โ€” WRAPPED IN if __name__ == "__main__" +# DEMO โ€” RUN ONLY IF FILE IS MAIN if __name__ == "__main__": log_scan("A man passing the main road", "Alert User") log_scan("A family roaming in a busy market", "Describe the surroundings") log_scan("Animal moving freely in the zoo", "Describe the surroundings") show_history() +