[
https://issues.apache.org/jira/browse/TIKA-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990364#comment-15990364
]
ASF GitHub Bot commented on TIKA-2322:
--------------------------------------
chrismattmann commented on issue #168: fix for TIKA-2322 contributed by
[email protected]
URL: https://github.com/apache/tika/pull/168#issuecomment-298253974
Good news! I updated my docker-machine, and built a new vbox VM using Docker
Quickstart terminal, used @ThejanW's updated docker file, rebuilt it, and ran
the tests, and:
```
LMC-053601:smadha-tika mattmann$ java -jar
tika-app/target/tika-app-1.15-SNAPSHOT.jar
--config=tika-parsers/src/test/resources/org/apache/tika/parser/recognition/tika-config-tflow-video-rest.xml
./tika-parsers/src/test/resources/test-documents/testVideoMp4.mp4
WARN JBIG2ImageReader not loaded. jbig2 files will be ignored
INFO Available = true, API Status = HTTP/1.0 200 OK
INFO minConfidence = 0.015, topN=4
INFO Recogniser =
org.apache.tika.parser.recognition.tf.TensorflowRESTVideoRecogniser
INFO Recogniser Available = true
<?xml version="1.0" encoding="UTF-8"?><html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Content-Length" content="1053651"/>
<meta name="OBJECT" content="king penguin, Aptenodytes patagonica
(0.19076)"/>
<meta name="OBJECT" content="hare (0.13538)"/>
<meta name="OBJECT" content="wallaby, brush kangaroo (0.09441)"/>
<meta name="OBJECT" content="ice bear, polar bear, Ursus Maritimus,
Thalarctos maritimus (0.09350)"/>
<meta name="X-Parsed-By" content="org.apache.tika.parser.CompositeParser"/>
<meta name="X-Parsed-By"
content="org.apache.tika.parser.recognition.ObjectRecognitionParser"/>
<meta name="Content-Type" content="video/mp4"/>
<meta name="resourceName" content="testVideoMp4.mp4"/>
<meta name="org.apache.tika.parser.recognition.object.rec.impl"
content="org.apache.tika.parser.recognition.tf.TensorflowRESTVideoRecogniser"/>
<title/>
</head>
<body><ol id="objects"> <li id="king penguin, Aptenodytes patagonica">
king penguin, Aptenodytes patagonica [en](confidence = 0.190764 )</li>
<li id="hare"> hare [en](confidence = 0.135382 )</li>
<li id="wallaby, brush kangaroo"> wallaby, brush kangaroo
[en](confidence = 0.094413 )</li>
<li id="ice bear, polar bear, Ursus Maritimus, Thalarctos maritimus">
ice bear, polar bear, Ursus Maritimus, Thalarctos maritimus [en](confidence =
0.093503 )</li>
</ol>
</body></html>LMC-053601:smadha-tika mattmann$
```
Yay! I'm going to push the updated docker file now, and prepare to commit
this. I will also create a wiki page before doing so. Give me 20 mins.
----------------------------------------------------------------
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:
[email protected]
> 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)