imsoo / fight_detection

Real time Fight Detection Based on 2D Pose Estimation and RNN Action Recognition
MIT License
193 stars 42 forks source link

I'm trying to implement this repo as a local file. #11

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi, imsoo. First, thank you for providing me with a good repo.

As the title says, I want this repo to work as a local file. So I didn't operate ventilator, worker, and client.

If so, I think I can only use action.py and OpenCV, but I would like to know if it is possible.

My current development environment is Python 3.6 and tf 2.0, and I am going to load the pre trained action.h5 model and apply it to the image.

Thank you for you read my question.

imsoo commented 4 years ago

@BBeomH

Thank you for your interest in this repo.


As the title says, I want this repo to work as a local file. So I didn't operate ventilator, worker, and client. If so, I think I can only use action.py and OpenCV, but I would like to know if it is possible.

In this repo, we need to make below pipeline.

Client → Ventilator → Worker → (Sink ⇄ Action) → Client

So, you need to run ventilator, worker, sink and client additionally. Try below command.

./sink
./ventilator
./worker ...
./action.py
./darknet_client -addr 127.0.0.1 ....

Feel free to ask if you have any questions.

gzchenjiajun commented 3 years ago

@BBeomH same problem ,I also get the stream camera to test, how to do it?