public class CombiShotDetector extends VideoShotDetector<MBFImage>
It runs the shot detection for each detector that is registered with the class and if it determines that a shot boundary occurred the score is increased by the weighting value for that detector. The final score is divided by the number of detectors to get a probability value for the frame being a shot boundary. By default the threshold is set to 0.75 - that is, there must be a 3/4 correlation of shot boundary for it to be considered a shot boundary.
lastFrameWasBoundary, threshold
Constructor and Description |
---|
CombiShotDetector()
If you use this constructor, your timecodes will be messed up
unless you call
VideoShotDetector.setFPS(double) before you process
any frames. |
CombiShotDetector(Video<MBFImage> video)
Default constructor that takes the video to be processed
|
Modifier and Type | Method and Description |
---|---|
void |
addVideoShotDetector(VideoShotDetector<MBFImage> detector,
double weight)
Add a shot detector that will be used in the evidence gathering.
|
protected double |
getInterframeDistance(MBFImage thisFrame)
Returns the inter-frame distance between this frame and the last.
|
addShotDetectedListener, afterUpdate, beforeUpdate, fireDifferentialCalculated, fireShotDetected, getDifferentials, getLastKeyframe, getLastShotBoundary, getShotBoundaries, getThreshold, process, processFrame, removeShotDetectedListener, reset, setFindKeyframes, setFPS, setStoreAllDifferentials, setThreshold, wasLastFrameBoundary
countFrames, getCurrentFrame, getFPS, getHeight, getNextFrame, getTimeStamp, getWidth, hasNextFrame, process, processingComplete
close, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndex
public CombiShotDetector()
VideoShotDetector.setFPS(double)
before you process
any frames.public CombiShotDetector(Video<MBFImage> video)
video
- The videopublic void addVideoShotDetector(VideoShotDetector<MBFImage> detector, double weight)
detector
- The detectorweight
- The weight to use for this detectorprotected double getInterframeDistance(MBFImage thisFrame)
getInterframeDistance
in class VideoShotDetector<MBFImage>
VideoShotDetector.getInterframeDistance(org.openimaj.image.Image)