falldetection_openpifpaf icon indicating copy to clipboard operation
falldetection_openpifpaf copied to clipboard

some issue to run on webcam

Open alighofrani95 opened this issue 4 years ago • 10 comments

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'

alighofrani95 avatar Oct 10 '20 19:10 alighofrani95

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 ?

tim120526 avatar Oct 16 '20 10:10 tim120526

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

robbiwu avatar Oct 28 '20 10:10 robbiwu

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?

alighofrani95 avatar Oct 28 '20 12:10 alighofrani95

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.

robbiwu avatar Oct 28 '20 19:10 robbiwu

make sure you modify your config.xml (RTSPURL)

robbiwu avatar Nov 07 '20 11:11 robbiwu

@robbiwu can you explain be about to modify config.xml (RTSPURL).

MilkTeaMix avatar Nov 16 '20 11:11 MilkTeaMix

@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 :)

robbiwu avatar Nov 16 '20 12:11 robbiwu

Thank you so much @robbiwu . next quetion can i get the fallcount value or show in figure.

MilkTeaMix avatar Nov 17 '20 06:11 MilkTeaMix

@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' image And then I find the functional module most possible is the file named functional.c image image Because I find the same name func in the functional.c image image That‘s all, Please help me!Thanks

theyoungghost avatar Feb 27 '22 06:02 theyoungghost

@theyoungghost find any solution?

vaibhav-OG avatar Jul 06 '23 07:07 vaibhav-OG