This flow will allow you to input a video file and detect fire in that video.
- A model will be selected for fire detection.
- It'll accept a video as the input.
- Fire will be detected in the input video.
- Predictions can be visualized.
Here we will use “yolo-416-fire’’ model to detect fire in the input video.
Step 1 - Create the flow like in the below image by dragging and dropping the nodes
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/direct/1689653722313-image.png)
Step 2 - Upload video (For RTSP inference ignore this step)
Check for the sample fire videos in the appropriate storage path (/DATA/Object_detection/source_video/) or upload the video to be detected in that path.
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/direct/1689654757687-image.png)
upload the object detection weight file (Eg: yolo-file-416.weights) to the model path (/DATA/Object_detection/models/)
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/direct/1691393711524-image.png)
upload the object detection model name file (Eg: fire.names) to the model path (/DATA/Object_detection/classes/)
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/direct/1691393912707-image.png)
Step 3 - Node Configuration
AD-Initiate-Project-1
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/direct/1689653811396-image.png)
- Project Type - Select ‘Object_detection’ from the drop-down
- Project Name - Give a project name and press enter
- Version Number - Leave the version number 1 by default or add a version number and select from the drop-down for version number > 1
SG-GCP-AD-Common-Predictor-8
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/direct/1689654096561-image.png)
- Project Type - Auto-filled
- Project Name - Auto-filled
- Version Number - Auto-filled
- Select Platform - Select "interplay" from the drop-down
- Model - Select "Yolov4" from the drop-down
- Darknet weights - Select “yolo-fire-416” from the drop-down
- RTSP link/Video Path - Give rtsp link or video path located in the interplay
- Config - Type “{input_size_weapon:608}”. You can change the size like 416
- Upload Class file - Upload the class file from your local machine
- Class File Path - Auto-filled
Class file format:
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/direct/1689654989086-image.png)
Model Visualize
- Nothing to configure
Step 4 - Inference
Click on the left side button of Inject node to start detection.
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/3326862/1689655358851-image20230718-94-1l93xna.png)
Predictions can be visualized by triggering the Model Visualizer node (click on the right side button).
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7560/3326865/1689655509962-image20230718-75-1xdadb2.png)
The output will be like in the figure below