Human Action Recognition Dataset Generation

(50 customer reviews)

$0.00

Total downloads: 474

This repository has the OpenCV python code which segments the human object from a video frame. The human object must be in action. This is further used to analyze and classify the different actions in a video. In this repository, you will get:

  • python code to segment the object in action from the video
  • processed data of UT interaction data and labels.xlsx
Download Test
 Discuss Code

Description

Step1: Data Pre-processing

The frame segmentation part is done using python. I have attached a demo of the operation. The input video is the segmented video as downloaded from the weblink. The name of video has information for all actions and etc. An excel file is attached for it. An example is here

Set sequence # Activity Class ID Starting Frame # Ending Frame # Activity Class ID Main actor (left=0, right=1, both=-1)
00_1_4.avi’ seq1 4 32 89 punching 1

 

In each video for segmentation, we need to select the actor by marking ROI around the main actor and selecting it by pressing enter. The action of the main actor will be tracked automatically and each frame will be saved in the destined directory. The main actor in each video is defined in label.xlsx (designed from data on the website). You can check the video for this.

you need to take care of actors in each video, the video may have one or two main actors and need to be segmented all actors action. Further manual analysis is required to further filter the frames of action only. We will leave the rest frames of the main actor in each video. For example, in the above table, the main action is in from frame 32-89 and the activity class is 4 which is punching. Once all action data is filtered and labeled, can be used for classification. The machine learning algorithm is used for the classification task. Optimal outcomes are achieved with the machine learning classifier. The activity of particular class is classified with the machine learning approach.

Requisites to run main.py

  1. download python latest version from this link : https://www.python.org/downloads/
  2. install opencv as

2.1 go to the command prompt

2.2 type pip install opencv-python and enter

2.3 once its installation is finished, type

         pip install opencv-contrib-python  and enter

How to run main.py

  • open command prompt
  • type the command as

python <directory of main.py> <input video location> <directory where images to be saved>

example:

python F://freelancer//aditiJah//Data_preprocessing//main.py  F://freelancer//aditiJah//ut-interaction_segmented_set1//segmented_set1 F://freelancer//aditiJah//ut-interaction_segmented_set1//images

Step 2: How to run MATLAB code

once the data pre-processing and labels.xlsx is generated, run main.m by giving proper path in the code.

Note: We have used this for the research work and the data was manually selected. The human actions are classified by 2-level machine learning approaches. The proposed approach has been able to fetch the accuracy upto 98.66%.

Here is the abstract:

We take the UT interaction video dataset to validate the performance of the work. The UT interaction dataset consists of 20 sequence videos with the six different interaction category of the human-human interaction. The input video segmented into the frames using a python script. The global features are evaluated with the Histogram of Gradient (HOG) and Histogram of Optical Flow (HOF). A features vector obtained after the feature extraction from the frames of the video. The dimension of the HOF and HOG feature vector is reduced by the Principle Component Analysis (PCA) method. The extracted features are fed to the SVM classifier which provided two different classes of six human-human interaction action. Class 1 contains the fighting interaction like Kicking, Punching and Pushing and Class 2 contains the normal interaction like Pointing, Hugging and Hand Shaking.

Again features are extracted from the two classes of human interaction. The Speed up Robust Features (SURF) is used to detect the motion features from the classified categories of interaction. The detected features are represented into the visual words by using the Bag of Visual Word (BoVW) approach. The BoVW approach encoded the features or key points extracted from the segmented frame. The output of SURF-BoVW features is fed to the Neural Network classifier, which classifies the human-human interaction. The proposed method provided efficient results than the single level classier like SVM and KNN. The proposed method provided an approximate 99 % classification accuracy for the UT interaction dataset.

50 reviews for Human Action Recognition Dataset Generation

  1. sysmat Soft (verified owner)

    Great work

  2. rakkshab.iyer (verified owner)

    L

  3. edwin.fernando (verified owner)

    nice work

  4. viking (verified owner)

    good

  5. ashwinikumar.balani (verified owner)

    qdwefwfqwfqwfqewr

  6. coco.tools (verified owner)

    great work , thanks

  7. coco.tools (verified owner)

    great work , thanks

  8. vishnu vardhan.b (verified owner)

    thank you

  9. mkmkn.gjvgj (verified owner)

    khbkjlklnlkj lk luhkj kj kj ihuhl iij

  10. Kay (verified owner)

    Excited to see how it works.

  11. ashishsoni (verified owner)

    Excellent

  12. ronald.barcia (verified owner)

    Good database

  13. venkat.reddy (verified owner)

    great

  14. venkat.reddy (verified owner)

    great

  15. jk.k (verified owner)

    awesome

  16. abhishek.mishra (verified owner)

    good

  17. yilber.rojas (verified owner)

    excelent

  18. ankita.darekar (verified owner)

    good work

  19. merin.abraham (verified owner)

    nice

  20. sameer.kumthekar (verified owner)

    best

  21. vankani.arjun (verified owner)

    Nice project !!

  22. daniel.jebakumar (verified owner)

    hi

  23. boukettaya.achraf (verified owner)

    great

  24. n.m (verified owner)

    vv

  25. givindu.perera (verified owner)

    Great

  26. quametmoi (verified owner)

    good

  27. quametmoi (verified owner)

    good

  28. satrughan.kumar (verified owner)

    well suported content

  29. msmshubber (verified owner)

    great

  30. sampath.b (verified owner)

    Good

  31. dbsignup (verified owner)

    thankyou very much

  32. arnab.biswas (verified owner)

    Nice

  33. arnab.biswas (verified owner)

    Nice

  34. arnab.biswas (verified owner)

    Nice

  35. shana.hussain (verified owner)

    Excellent

  36. shana.hussain (verified owner)

    good

  37. kathikeyan.v (verified owner)

    nice

  38. chou_aib (verified owner)

    Great

  39. jacim59808 (verified owner)

    bgbfbd

  40. kavisha.bandara (verified owner)

    nice

  41. fraction.analytics (verified owner)

    Nice

  42. le (verified owner)

    a

  43. le (verified owner)

    7

  44. danisach.shelke (verified owner)

    Na

  45. rizki (verified owner)

    googd

  46. harish.rajaa (verified owner)

    nnice

  47. sagar.verma (verified owner)

    good

  48. MERIT (verified owner)

    GOOD

  49. ishaan (verified owner)

    GOOD

  50. ftafta

    thank you so much

  51. abdulraufgarba (verified owner)

    this is very helpul

Only logged in customers who have purchased this product may leave a review.

No more offers for this product!