Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add method when the object was detected ? #16

Open
chikow opened this issue Jul 7, 2020 · 3 comments
Open

How to add method when the object was detected ? #16

chikow opened this issue Jul 7, 2020 · 3 comments

Comments

@chikow
Copy link

chikow commented Jul 7, 2020

Good morning,

I'm stuck today because I don't know how to add a python method on YoloV3 or YoloV4,

My goal is to trigger an alarm (to send an e-mail for example) when an object will be detected,
example:

When my Yolov3 program detects it will send an alert email or a message (sms)

@xanthan011
Copy link

What you can do is instead of sending an alert (sms or mail) u can create a file like log.txt and keep the log(Writing the file) of the detected objected as there might be cases where some irrelevant object/noise is detected and u dont want your phone spammed with those messages.

but if u still want to send an email... try this link:https://www.geeksforgeeks.org/send-mail-gmail-account-using-python/
it has the python program to send email. u can integrate this in the files.

@chikow
Copy link
Author

chikow commented Oct 15, 2020

Yes i want to do this but why can i integrate this ? i have .py file which can send mail correctly buy i don't know how to execute the file when it detect object

@xanthan011
Copy link

U can write the write that code (of mail generation) into a function in the same file. So now u can import that function from that file and use it.
Eg.. If the name of your file is filename and u named the function as func. So do this in the file u want to integrate..
from filename import func

and use the function like
func()
or
func(parameters)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants