falldetection_openpifpaf
falldetection_openpifpaf copied to clipboard
some issue to run on webcam
thanks a lot for this great and useful repo...
I followed step by step but I faced with the error below:
python3 -m openpifpaf.video --source 0 --show
Traceback (most recent call last):
File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/site-packages/openpifpaf/video.py", line 303, in
thanks a lot for this great and useful repo...
I followed step by step but I faced with the error below:
python3 -m openpifpaf.video --source 0 --show
Traceback (most recent call last): File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/site-packages/openpifpaf/video.py", line 303, in main() File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/site-packages/openpifpaf/video.py", line 278, in main inference(args, streamer) File "/home/ali/anaconda3/envs/falldetection_openpifpaf/lib/python3.7/site-packages/openpifpaf/video.py", line 185, in inference if RTSPURL.startswith('rtsp'): AttributeError: 'int' object has no attribute 'startswith'
hey,guy. have u solved it ?
I had this problem, I recopied the git folder over to the correct folder. Mine was Windows 10 so its not 1 for 1. Works
I had this problem, I recopied the git folder over to the correct folder. Mine was Windows 10 so its not 1 for 1. Works
Could you please explain more where the exactly you copied the repo?
My working dir was /windows/user/rober/
The git dir -> C:\Users\rober\falldetection_openpifpaf To C:\Users\rober\anaconda3\envs\falldetection_openpifpaf\Lib\site-packages\openpifpaf
Then make sure you modify the config.xml in the second folder and not the env root 😊
Hope this helps 😊
Robbi.
From: Ali Ghofrani [email protected] Sent: Wednesday, October 28, 2020 12:32 PM To: cwlroda/falldetection_openpifpaf [email protected] Cc: Robbi Wu [email protected]; Comment [email protected] Subject: Re: [cwlroda/falldetection_openpifpaf] some issue to run on webcam (#2)
I had this problem, I recopied the git folder over to the correct folder. Mine was Windows 10 so its not 1 for 1. Works
Could you please explain more where the exactly you copied the repo?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/cwlroda/falldetection_openpifpaf/issues/2#issuecomment-717901896, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGZNUYOVYI7PNJ4JOBAUM5TSNAFMNANCNFSM4SLIFF7Q.
make sure you modify your config.xml (RTSPURL)
@robbiwu can you explain be about to modify config.xml (RTSPURL).
@MilkTeaMix - Hello. Ok your problem is the default cam index for opencv and/or possibly your config.xml
Change your config.xml id and RTSPURL to "webcam"
Set scale accordingly and then modify video.py line 163 from
capture = cv2.VideoCapture(-1) to capture = cv2.VideoCapture(0)
then run as python -m openpifpaf.video --show Happy falling :)
Thank you so much @robbiwu . next quetion can i get the fallcount value or show in figure.
@cwlroda
@robbiwu
Hi,I encountered a problem while running this project, Could you help me ? please.
I try to run this project in Window10.
When I try to run 'python -m openpifpaf.video --show'.
This problem arises: ModuleNotFoundError: No module named 'openpifpaf.functional'
And then I find the functional module most possible is the file named functional.c
Because I find the same name func in the functional.c
That‘s all, Please help me!Thanks
@theyoungghost find any solution?