neha07kumari / Thief_Detection

This project helps to detect whether a person coming to your house is a thief or not , while you are away from your house enjoying your holiday or a trip.
https://neha07kumari.github.io/Thief_Detection/
Mozilla Public License 2.0
6 stars 14 forks source link

Thief-Detection : Person Detection is Thief or Not (Based on taking up an unusual path) #6

Open prathimacode-hub opened 2 years ago

prathimacode-hub commented 2 years ago

Description

Welcome to 'Thief -Detection', good to see you here.

With this issue, the readers will get to know on how to detect whether a person is thief or not.

To get assigned to this issue, add your participant id mentioned in this spreadsheet and the approach you would follow.

Points to Note :

This issue is only for 'SWOC' contributors

Domain

Data Science

Code of Conduct

kkg2001 commented 2 years ago

I want to work on this issue

6

prathimacode-hub commented 2 years ago

You can work on only 1 issue at a time so let me know of what you would choose first? @kkg2001

kkg2001 commented 2 years ago

I want to work on issue#6

prathimacode-hub commented 2 years ago

Ok, provide the details mentioned to get it assigned. @kkg2001

kkg2001 commented 2 years ago

Name-Krishna Kant Gupta Participant ID:499 Discord-krish1234#9508 Project:Person Detection is thief or not github id:@kkg2001

prathimacode-hub commented 2 years ago

Approach please. @kkg2001

kkg2001 commented 2 years ago

Approach: First of all we will check the stranger's body movements and take into consideration his body language from the usual parameters. Secondly using opencv or any other technology relevant to this project we will check whether the person is nervous/curious or not keeping into consideration how normal people's face reactions. Time parameter like whether the stranger looks in a hurry or he is pretending to be in normal state and taking more time than usual so that nobody catches him. There are chances that he may not use the usual path to enter the house in that case the siren alarm should ring immediately and should confirm that he is certainly a thief. Tracing his finger prints or detecting his face could make work easier whether his history is there as a thief.

prathimacode-hub commented 2 years ago

This would be a long thing for this issue. Nice ideas you have showcased. But we already created other issues for considerations mentioned. For this issue, we shall do it with basic one. If person is not entering through a usual path, we detect him as thief and alarm would ring immediately. @kkg2001

kkg2001 commented 2 years ago

Thanks. Ok I will work on only the basic one when the thief is entering through an unusual path

prathimacode-hub commented 2 years ago

Yes, once you finish this. You can take up an another issue related to it. Issue is assigned to @kkg2001

prathimacode-hub commented 2 years ago

Yours is a basic and will be interlinked issue for many other issues. @kkg2001

kkg2001 commented 2 years ago

Ok I will make sure I put up my best efforts for this issue and then I will move over to other issues (probably #7)

prathimacode-hub commented 2 years ago

Great, you can proceed. All the best. @kkg2001

kkg2001 commented 2 years ago

I am presuming that cctv cameras are installed on that path from where stranger will try to enter the house from an unusual path. I will share the code shortly and let me know the changes in it. Thanks

prathimacode-hub commented 2 years ago

Ok sure. Yeah, with cctv. Without cctv, you have any idea to add? I don't think owners would keep cctv on unsual path. For now, this works @kkg2001

kkg2001 commented 2 years ago

If by some mechanism we can measure the randomness of motion of the stranger coming by unusual path then its possible(something like a sensor or if we can predict its motion history). For example coming via window pane or jumping off the fence will have different motions.

prathimacode-hub commented 2 years ago

Yes, for this issue we shall proceed with this thing we had thought of. We can add this up later in issues for better proximity. @kkg2001

kkg2001 commented 2 years ago

You mean we can proceed with this cctv thing what we actually presumed or something else?

prathimacode-hub commented 2 years ago

It's the same what we had thought earlier. Proceeding with CCTV thing. @kkg2001

prathimacode-hub commented 2 years ago

Yes, the same. I thought you would have started working. @kkg2001

kkg2001 commented 2 years ago

I started back then but in the back of my mind was thinking about what if the cctv was not in the unusual path. Regarding the coding part I am facing some errors so I am fixing those.

prathimacode-hub commented 2 years ago

Ok for now we will get this done and later add enhancements to it. What are the errors you're getting? @kkg2001

kkg2001 commented 2 years ago

'error: unrecognsied elements' , 'an exception has occured , use %tb to see the full traceback'

kkg2001 commented 2 years ago

*arguments not elements

prathimacode-hub commented 2 years ago

The elements you have mentioned in arguments aren't recognizing. Have you defined them? @kkg2001

kkg2001 commented 2 years ago

Yes I have defined them. I will still again look onto it. Also I think the packages are not installed properly.

prathimacode-hub commented 2 years ago

Ok, Understood libraries should be loaded for functionality to work. @kkg2001

prathimacode-hub commented 2 years ago

Kindly update the progress. Its been more than 10days. It should be done by now, if you're stuck anywhere we are here to help out. @kkg2001

kkg2001 commented 2 years ago

Ok sure. Give me some time.

On Thu, 6 Jan, 2022, 1:38 am Prathima Kadari, @.***> wrote:

Kindly update the progress. Its been more than 10days. It should be done by now, if you're stuck anywhere we are here to help out. @kkg2001 https://github.com/kkg2001

— Reply to this email directly, view it on GitHub https://github.com/neha07kumari/Thief_Detection/issues/6#issuecomment-1006040630, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVCAH4HFLURZXLLNFNMRFLUUSQKJANCNFSM5J6ZEEYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

prathimacode-hub commented 2 years ago

Because most of the work initiates from this issue. @kkg2001

kkg2001 commented 2 years ago

I am facing some issues. I tried running the code on jupyter notebook and imported open cv and numpy at the starting and also initiated video capture for video file but it showed neither any response nor any error and video file is in .avi format.

On Thu, 6 Jan, 2022, 10:06 pm Prathima Kadari, @.***> wrote:

Because most of the work initiates from this issue. @kkg2001 https://github.com/kkg2001

— Reply to this email directly, view it on GitHub https://github.com/neha07kumari/Thief_Detection/issues/6#issuecomment-1006732374, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVCAH72MHTZNGS32JUR6VDUUXAIXANCNFSM5J6ZEEYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

prathimacode-hub commented 2 years ago

Oh, if you could share me out the link @kkg2001

kkg2001 commented 2 years ago

import cv2 import numpy as np

body_classifier = cv2.CascadeClassifier(cv2.data.haarcascades+'haarcascade_fullbody.xml')

cap = cv2.VideoCapture('Thief.avi')

while cap.isOpened():

ret, frame = cap.read()

gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

bodies = body_classifier.detectMultiScale(gray, 1.2, 3)

for (x,y,w,h) in bodies:
    cv2.rectangle(frame, (x, y), (x+w, y+h), (0, 255, 255), 2)
    cv2.imshow('Thief', frame)

if cv2.waitKey(): 
    break

cap.release() cv2.destroyAllWindows()

kkg2001 commented 2 years ago

This is the code which is giving no response

kkg2001 commented 2 years ago

I made the required changes in the code and its working fine. Can I proceed towards merging the PR?

prathimacode-hub commented 2 years ago

oops, sorry I was unwell. I couldn't check out your messages. Hope error is solved? Yes, if it's working you can proceed to do so @kkg2001

kkg2001 commented 2 years ago

I am stuck in this. What to do? 2022-01-14 (1)

prathimacode-hub commented 2 years ago

I guess your forked repo and main repo is not even. That's why it isn't dedicating the changes made. Make it even and then push it back @kkg2001

kkg2001 commented 2 years ago

First I have to fork and clone the repo in my system. I created the new branch and upstream link was done too. After that should I add my folder which contains code for this issue to the cloned repo in my system?

On Fri, 14 Jan, 2022, 10:02 pm Prathima Kadari, @.***> wrote:

I guess your forked repo and main repo is not even. That's why it isn't dedicating the changes made. Make it even and then push it back.

— Reply to this email directly, view it on GitHub https://github.com/neha07kumari/Thief_Detection/issues/6#issuecomment-1013275020, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVCAH5OVUGD4EAUIDI5SULUWBFYFANCNFSM5J6ZEEYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

prathimacode-hub commented 2 years ago

Yes @kkg2001