[ 
https://issues.apache.org/jira/browse/TIKA-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990055#comment-15990055
 ] 

ASF GitHub Bot commented on TIKA-2322:
--------------------------------------

ThejanW commented on issue #168: fix for TIKA-2322 contributed by 
msha...@usc.edu
URL: https://github.com/apache/tika/pull/168#issuecomment-298196751
 
 
   # Take base as Ubuntu: 16.04, then you can simply apt-get install ffmpeg
   FROM ubuntu:16.04
   RUN apt-get update && \
         apt-get install ffmpeg
   
   # Dependencies
   RUN apt-get install build-essential cmake pkg-config \
         libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev \
         libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
         libxvidcore-dev libx264-dev \
         libgtk2.0-dev \
         libatlas-base-dev gfortran \
         python2.7-dev python3-dev \
         python-pip
   RUN \
         pip install --upgrade pip && \
         pip install numpy
   
   WORKDIR /usr/local/src
   
   # Download OpenCV 3 + Contrib
   RUN \ 
   wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.2.0.zip && \
   unzip opencv.zip && \
   wget -O opencv_contrib.zip 
https://github.com/Itseez/opencv_contrib/archive/3.2.0.zip && \
   unzip opencv_contrib.zip
   
   # Build + Install OpenCV
   WORKDIR /usr/local/src/opencv-3.2.0/
   RUN mkdir build
   WORKDIR /usr/local/src/opencv-3.2.0/build
   RUN cmake -D CMAKE_BUILD_TYPE=RELEASE \
         -D CMAKE_INSTALL_PREFIX=/usr/local \
         -D INSTALL_PYTHON_EXAMPLES=ON \
         -D INSTALL_C_EXAMPLES=OFF \
         -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.2.0/modules \
         -D BUILD_EXAMPLES=ON ..
   RUN make -j8
   RUN make install
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Video labeling using existing ObjectRecognition
> -----------------------------------------------
>
>                 Key: TIKA-2322
>                 URL: https://issues.apache.org/jira/browse/TIKA-2322
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>            Reporter: Madhav Sharan
>            Assignee: Chris A. Mattmann
>              Labels: memex
>             Fix For: 1.15
>
>
> Currently TIKA supports ObjectRecognition in Images. I am proposing to extend 
> this to support videos. 
> Idea is -
> 1. Extract frames from video and run IncV3 to get labels for these frames. 
> 2. We average confidence scores of same labels for each frame. 
> 3. Return results in sorted order of confidence score. 
> I am writing code for different modes of frame extractions -
> 1. Extract center image.
> 2. Extract frames after every fixed interval.
> 3. Extract N frames equally divided across video.
> We used this approach in [0]. Code in [1]
> [0] https://github.com/USCDataScience/hadoop-pot
> [1] https://github.com/USCDataScience/video-recognition



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to