File Exchange

image thumbnail

Pictorial Suspicious Action Detection

version 1.2.0.0 (9.77 MB) by Amarjot
Autonomous UAV for Suspicious Action Detection using Pictorial Human Pose Estimation and Classificat

4 Downloads

Updated 27 Jun 2014

View License

The code estimates Suspicious Action using Pictorial Human Pose Estimation and Classification applied on on images taken from an UAV.
This work titled "Autonomous UAV for Suspicious Action Detection using Pictorial Human Pose Estimation and Classification" was published in Electronic Letter on Computer Vision and Image Analysis, Vol. 13, No. 1, pp. 18-32, 2014. Available at: http://elcvia.cvc.uab.es/article/view/582/0
The project page that includes a video and graphs can be found at: https://sites.google.com/site/amarjotsingh0720/publications/suspiciousactiondetection

Steps to run the code.

1. Open MATLAB. Change the directory to the suspicious_activity_detector_v1 folder.

2. Add all the folders and subfolders in code directory to the MATLAB path.

3. Run the following commands one after another.
load ('detenv.mat');
startup;​​
cd code/voc-release3.1/voc-release3.1/
compile; % This doesn't work on windows. Suitable modification must be done.
cd ../../..

4. Change the threshold values for detection
det_pars.ubfpff_scale = 3;
det_pars.ubfpff_thresh = -0.75;
det_pars.iou_thresh = 0.9;

5. Code is setup and ready to run on a test image. Run the following commands to test.

image = imread('test_images/img_main.jpg');
[ubfdetections] = DetectStillImage2(image, 'pff_model_upperbody_final.mat', 'haarcascade_frontalface_alt2.xml', det_pars, 2);

6. If everything works fine, the result should be as shown in the attached image.

NOTE:
The code currently works only on linux systems. Suitable modifications can be made for windows.

Debugging:
If you get the error that MATLAB is out of memory, re-run the code by reducing the value of det_pars.ubfpff_scale.

Cite As

Amarjot (2020). Pictorial Suspicious Action Detection (https://www.mathworks.com/matlabcentral/fileexchange/47020-pictorial-suspicious-action-detection), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

hai sir /madam...how to run that code...please help me

Kindly provide steps to run this code on windows platform. It would be very helpful. Thanks in advance.

Updates

1.2.0.0

updated steps to run

1.1.0.0

Updates Summary

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

suspiciousactivitydetector-master/code/calvin_upperbody_detector_v1.04/calvin_upperbody_detector_v1.04/code/

suspiciousactivitydetector-master/code/pose_estimation_code_release_v1.21/pose_estimation_code_release_v1.21/code/

suspiciousactivitydetector-master/code/pose_estimation_code_release_v1.21/pose_estimation_code_release_v1.21/code/utils/

suspiciousactivitydetector-master/code/pose_estimation_code_release_v1.21/pose_estimation_code_release_v1.21/example_data/

suspiciousactivitydetector-master/code/voc-release3.1/voc-release3.1/