EgoSampling: Fast-Forward and Stereo for Egocentric Videos

12/11/2014
by   Yair Poleg, et al.
0

While egocentric cameras like GoPro are gaining popularity, the videos they capture are long, boring, and difficult to watch from start to end. Fast forwarding (i.e. frame sampling) is a natural choice for faster video browsing. However, this accentuates the shake caused by natural head motion, making the fast forwarded video useless. We propose EgoSampling, an adaptive frame sampling that gives more stable fast forwarded videos. Adaptive frame sampling is formulated as energy minimization, whose optimal solution can be found in polynomial time. In addition, egocentric video taken while walking suffers from the left-right movement of the head as the body weight shifts from one leg to another. We turn this drawback into a feature: Stereo video can be created by sampling the frames from the left most and right most head positions of each step, forming approximate stereo-pairs.

READ FULL TEXT VIEW PDF

page 2

page 5

page 6

page 8

04/26/2016

EgoSampling: Wide View Hyperlapse from Egocentric Videos

The possibility of sharing one's point of view makes use of wearable cam...
02/23/2018

A Weighted Sparse Sampling and Smoothing Frame Transition Approach for Semantic Fast-Forward First-Person Videos

Thanks to the advances in the technology of low-cost digital cameras and...
09/21/2020

A Sparse Sampling-based framework for Semantic Fast-Forward of First-Person Videos

Technological advances in sensors have paved the way for digital cameras...
09/03/2020

Mononizing Binocular Videos

This paper presents the idea ofmono-nizingbinocular videos and a frame-w...
04/20/2021

MGSampler: An Explainable Sampling Strategy for Video Action Recognition

Frame sampling is a fundamental problem in video action recognition due ...
06/21/2020

Lyric Video Analysis Using Text Detection and Tracking

We attempt to recognize and track lyric words in lyric videos. Lyric vid...
11/27/2014

An Egocentric Look at Video Photographer Identity

Egocentric cameras are being worn by an increasing number of users, amon...

Code Repositories

SemanticFastForward_ICIP_2016

Fast-Forward Video Based on Semantic Extraction @ 2016 IEEE International Conference on Image Processing (ICIP)


view repo

1 Introduction

With the increasing popularity of GoPro [10] and the introduction of Google Glass [9] the use of head worn egocentric cameras is on the rise. These cameras are typically operated in a hands-free, always-on manner, allowing the wearers to concentrate on their activities. While more and more egocentric videos are being recorded, watching such videos from start to end is difficult due to two aspects: (i) The videos tend to be long and boring; (ii) Camera shake induced by natural head motion further disturbs viewing. These aspects call for automated tools to enable faster access to the information in such videos. An exceptional tool for this purpose is the “Hyperlapse” method recently proposed by [15]. While our work was inspired by [15], we take a different, lighter, approach to address this problem.

Figure 1: Frame sampling for Fast Forward. A view from above on the camera path (the line) and the viewing directions of the frames (the arrows) as the camera wearer walks forward during a couple of seconds. (a) Uniform frames sampling, shown with solid arrows, gives output with significant changes in viewing directions. (b) Our frame sampling, represented as solid arrows, prefers forward looking frames at the cost of somewhat non uniform sampling.

Fast forward is a natural choice for faster browsing of egocentric videos. The speed factor depends on the cognitive load a user is interested in taking. Naïve fast forward uses uniform sampling of frames, and the sampling density depends on the desired speed up factor. Adaptive fast forward approaches [25] try to adjust the speed in different segments of the input video so as to equalize the cognitive load. For example, sparser frame sampling giving higher speed up is possible in stationary scenes, and denser frame sampling giving lower speed ups is possible in dynamic scenes. In general, content aware techniques adjust the frame sampling rate based upon the importance of the content in the video. Typical importance measures include scene motion, scene complexity, and saliency. None of the aforementioned methods, however, can handle the challenges of egocentric videos, as we describe next.

Figure 2: Representative frames from the fast forward results on ‘Bike2’ sequence [14]. The camera wearer rides a bike and prepares to cross the road. Top row: uniform sampling of the input sequence leads to a very shaky output as the camera wearer turns his head sharply to the left and right before crossing the road. Bottom row: EgoSampling prefers forward looking frames and therefore samples the frames non-uniformly so as to remove the sharp head motions. The stabilization can be visually compared by focusing on the change in position of the building (circled yellow) appearing in the scene. The building does not even show up in two frames of the uniform sampling approach, indicating the extreme shake. Note that the fast forward sequence produced by EgoSampling can be post-processed by traditional video stabilization techniques to further improve the stabilization.

Most egocentric videos suffer from substantial camera shake due to natural head motion of the wearer. We borrow the terminology of [26] and note that when the camera wearer is “stationary” (e.g, sitting or standing in place), head motions are less frequent and pose no challenge to traditional fast-forward and stabilization techniques. However, when the camera wearer is “in transit” (e.g, walking, cycling, driving, etc), existing fast forward techniques end up accentuating the shake in the video. We therefore focus on handling these cases, leaving the simpler cases of a stationary camera wearer for standard methods. We use the method of [26]

to identify with high probability portions of the video in which the camera wearer is not “stationary”, and operate only on these. Other methods, such as

[13, 22] can also be used to identify a stationary camera wearer.

We propose to model frame sampling as an energy minimization problem. A video is represented as a directed a-cyclic graph whose nodes correspond to input video frames. The weight of an edge between nodes, e.g. between frame and frame , represents a cost for the transition from to . For fast forward, the cost represents how “stable” the output video will be if frame is followed by frame in the output video. This can also be viewed as introducing a bias favoring a smoother camera path. The weight will additionally indicate how suitable is to the desired playback speed. In this formulation, the problem of generating a stable fast forwarded video becomes equivalent to that of finding a shortest path in a graph. We keep all edge weights non-negative and note that there are numerous, polynomial time, optimal inference algorithms available for finding a shortest path in such graphs. We show that sequences produced with our method are more stable and easier to watch compared to traditional fast forward methods.

An interesting phenomenon of a walking person is the shifting of body weight from one leg to the other leg, causing periodic head motion from left to right and back. Given an egocentric video taken by a walking person, sampling frames from the left most and right most head positions gives approximate stereo-pairs. This enables generation of a stereo video from a monocular input video.

The contributions of this papers are: (i) A novel and lightweight approach for creating fast forward videos for egocentric videos. (ii) A method to create stereo sequences from monocular egocentric video.

The rest of this paper is organized as follows. We survey related works in Section 2. Proposed frame sampling method for fast forward and problem formulation are presented in Sections 3 and 4 respectively. In Section 5 we describe our method for creating perceptual stereo sequences. Experiments and user study results are given in Section 6. We conclude in Section 7.

2 Related Work

Video Summarization:

Video Summarization methods sample the input video for salient events to create a concise output that captures the essence of the input video. This field has seen many new papers in the recent years, but only a handful address the specific challenges of summarizing egocentric videos. In [16, 29], important keyframes are sampled from the input video to create a story-board summarizing the input video. In [22], subshots that are related to the same “story” are sampled to produce a “story-driven” summary. Such video summarization can be seen as an extreme adaptive fast forward, where some parts are completely removed while other parts are played at original speed. These techniques are required to have some strategy for determining the importance or relevance of each video segment, as segments removed from summary are not available for browsing. As long as automatic methods are not endowed with human intelligence, fast forward gives a person the ability to survey all parts of the video.

Video Stabilization:

There are two main approaches for video stabilization. One approach uses methods to reconstruct a smooth camera path [17, 19]. Another approach avoids , and uses only motion models followed by non-rigid warps [11, 18, 20, 21, 8]. A naïve fast forward approach would be to apply video stabilization algorithms before or after uniform frame sampling. As noted by [15]

also, stabilizing egocentric video doesn’t produce satisfying results. This can be attributed to the fact that uniform sampling, irrespective of whether done before or after the stabilization, is not able to remove outlier frames, e.g. the frames when camera wearer looks at his shoe for a second while walking in general.

An alternative approach that was evaluated in [15], termed “coarse-to-fine stabilization”, stabilizes the input video and then prunes frames from the stabilized video a bit. This process is repeated until the desired playback speed is achieved. Being a uniform sampling approach, this method does not avoid outlier frames. In addition, it introduces significant distortion to the output as a result of repeated application of a stabilization algorithm.

EgoSampling differs from traditional fast forward as well as traditional video stabilization. We attempt to adjust frame sampling in order to produce a stable-as-possible fast forward sequence. Rather than stabilizing outlier frames, we prefer to skip them. While traditional stabilization algorithms must make compromises (in terms of camera motion and crop window) in order to deal with every outlier frame, we have the benefit of choosing which frames to include in the output. Following our frame sampling, traditional video stabilization algorithms [11, 18, 20, 21, 8] can be applied to the output of EgoSampling to further stabilize the results.

Hyperlapse:

A recent work [15], dedicated to egocentric videos, proposed to use a combination of scene reconstruction and image based rendering techniques to produce a completely new video sequence, in which the camera path is perfectly smooth and broadly follows the original path. The results of Hyperlapse are impressive. However, the scene reconstruction and image based rendering methods are not guaranteed to work for many egocentric videos, and the computation costs involved are very high. Hyperlapse may therefore be less practical for day-long videos which need to be processed at home. Unlike Hyperlapse, EgoSampling uses only raw frames sampled from the original video.

3 Proposed Frame Sampling

Most egocentric cameras are usually worn on the head or attached to eyeglasses. While this gives an ideal first person view, it also leads to significant shaking of the camera due to the wearer’s head motion. Camera Shaking is higher when the person is “in transit” (e.g. walking, cycling, driving, etc.). In spite of the shaky original video, we would prefer for consecutive output frames in the fast forward video to have similar viewing directions, almost as if they were captured by a camera moving forward on rails. In this paper we propose a frame sampling technique, which selectively picks frames with similar viewing directions, resulting in a stabilized fast forward egocentric video. See Fig. 1 for a schematic example.

Head Motion Prior

As noted by [26, 13, 16, 27], the camera shake in an egocentric video, measured as optical flow between two consecutive frames, is far from being random. It contains enough information to recognize the camera wearer’s activity. Another observation made in [26] is that when “in transit”, the mean (over time) of the instantaneous optical flow is always radially away from the Focus of Expansion (FOE). The interpretation is simple: when “in transit” (e.g., walking/cycling/driving etc), our head might be moving instantaneously in all directions (left/right/up/down), but the physical transition between the different locations is done through the forward looking direction (i.e. we look forward and move forward). This motivates us to use a forward orientation sampling prior. When sampling frames for fast forward, we prefer frames looking to the direction in which the camera is translating.

Computation of Motion Direction (Epipole)

Given video frames, we would like to find the motion direction (Epipolar point) between all pairs of frames, and , where , and is the maximum allowed frame skip. Under the assumption that the camera is always translating (when the camera wearer is “in transit”), the displacement direction between and

can be estimated from the fundamental matrix

[12]. Frame sampling will be biased towards selecting forward looking frames, where the epipole is closest to the center of the image. Recent V-SLAM approaches such as [5, 7] provide camera ego-motion estimation and localization in real-time. However, these methods failed on our dataset after a few hundreds frames. We decided to stick with robust motion models.

Estimation of Motion Direction (FOE)

We found that the fundamental matrix computation can fail frequently when (temporal separation between the frame pair) grows larger. Whenever the fundamental matrix computation breaks, we estimate the direction of motion from the FOE of the optical flow. We do not compute the FOE from the instantaneous flow, but from integrated optical flow as suggested in [26] and computed as follows: (i) We first compute the sparse optical flow between all consecutive frames from frame to frame . Let the optical flow between frames and be denoted by . (ii) For each flow location

, we average all optical flow vectors at that location from all consecutive frames.

. The FOE is computed from according to [28], and is used as an estimate of the direction of motion.

The temporal average of optical flow gives a more accurate FOE since the direction of translation is relatively constant, but the head rotation goes to all directions, back and forth. Averaging the optical flow will tend to cancel the rotational components, and leave the translational components. In this case the FOE is a good estimate for the direction of motion. For a deeper analysis of temporally integrated optical flow see “Pixel Profiles” in [21].

Optical Flow Computation

Most available algorithms for dense optical flow failed for our purposes, but the very sparse flow proposed in [26] for egocentric videos worked relatively well. The fifty optical flow vectors were robust to compute, while allowing to find the FOE quite accurately.

4 Problem Formulation and Inference

Figure 3: We formulate the joint fast forward and video stabilization problem as finding a shortest path in a graph constructed as shown. There is a node corresponding to each frame. The edges between a pair of frames indicate the penalty for including a frame immediately after frame in the output (please refer to the text for details on the edge weights). The edges between source/sink and the graph nodes allow to skip frames from start and end. The frames corresponding to nodes along the shortest path from source to sink are included in the output video.
Figure 4: Comparative results for fast forward from naïve uniform sampling (first row), EgoSampling using first order formulation (second row) and using second order formulation (third row). Note the stability in the sampled frames as seen from the tower visible far away (circled yellow). The first order formulation leads to a more stable fast forward output compared to naïve uniform sampling. The second order formulation produces even better results in terms of visual stability.

We model the joint fast forward and stabilization of egocentric video as an energy minimization problem. We represent the input video as a graph with a node corresponding to every frame in the video. There are weighted edges between every pair of graph nodes, and , with weight proportional to our preference for including frame right after in the output video. There are three components in this weight:

  1. Shakiness Cost (): This term prefers forward looking frames. The cost is proportional to the distance of the computed motion direction (Epipole or FOE) from the center of the image.

  2. Velocity Cost (): This term controls the playback speed of the output video. The desired speed is given by the desired magnitude of the optical flow, , between two consecutive output frames. This optical flow is estimated as follows: (i) We first compute the sparse optical flow between all consecutive frames from frame to frame . Let the optical flow between frames and be . (ii) For each flow location , we sum all optical flow vectors at that location from all consecutive frames. . (iii) The flow between frames and is then estimated as the average magnitude of all the flow vectors . The closer the magnitude is to , the lower is the velocity cost.

    The velocity term samples more densely periods with fast camera motion compared to periods with slower motion, e.g. it will prefer to skip stationary periods, such as when waiting at a red light. The term additionally brings in the benefit of content aware fast forwarding. When the background is close to the wearer, the scene changes faster compared to when the background is far away. The velocity term reduces the playback speed when the background is close and increases it when the background is far away.

  3. Appearance Cost (): This is the Earth Movers Distance (EMD) [24] between the color histograms of frames and . The role of this term is to prevent large visual changes between frames. A quick rotation of the head or dominant moving objects in the scene can confuse the FOE or epipole computation. The terms acts as an anchor in such cases, preventing the algorithm from skipping a large number of frames.

The overall weight of the edge between nodes (frames) and is given by:

(1)

where , and represent the relative importance of various costs in the overall edge weight.

With the problem formulated as above, sampling frames for stable fast forward is done by finding a shortest path in the graph. We add two auxiliary nodes, a source and a sink in the graph to allow skipping some frames from start or end. We add zero weight edges from start node to first frames and from last nodes to sink, to allow such skip. We then use Dijkstra’s algorithm [4] to compute the shortest path between source and sink. The algorithm does the optimal inference in time polynomial in the number of nodes (frames). Fig. 3 shows a schematic illustration of the proposed formulation.

We note that there are content aware fast forward and other general video summarization techniques which also measure importance of a particular frame being included in the output video, e.g. based upon visible faces or other objects. In our implementation we have not used any bias for choosing a particular frame in the output video based upon such a relevance measure. However, the same could have been included easily. For example, if the penalty of including a frame, , in the output video is , the weights of all the incoming (or outgoing, but not both) edges to node may be increased by .

4.1 Second Order Smoothness

Figure 5: The graph formulation, as described in Fig. 3, produces an output which has almost forward looking direction. However, there may still be large changes in the epipole locations between two consecutive frame transitions, causing jitter in the output video. To overcome this we add a second order smoothness term based on triplets of output frames. Now the nodes correspond to pair of frames, instead of single frame in first order formulation described earlier. There are edges between frame pairs and , if . The edge reflects the penalty for including frame triplet in the output. Edges from source and sink to graph nodes (not shown in the figure) are added in the same way as in first order formulation to allow skipping frames from start and end.

The formulation described in the previous section prefers to select forward looking frames, where the epipole is closest to the center of the image. With the proposed formulation, it may so happen that the epipoles of the selected frames are close to the image center but on the opposite sides, leading to a jitter in the output video. In this section we introduce an additional cost element: stability of the location of the epipole. We prefer to sample frames with minimal variation of the epipole location.

To compute this cost, nodes now represent two frames, as can be seen in Fig. 5. The weights on the edges depend on the change in epipole location between one image pair to the successive image pair. Consider three frames , and . Assume the epipole between and is at pixel . The second order cost of the triplet (graph edge) , is proportional to . This is the difference between the epiople location computed from frames and , and the epipole location computed from frames and .

This second order cost is added to the previously computed shakiness cost, which is proportional to the distance from the origin . The graph with the second order smoothness term has all edge weights non-negative and the running-time to find optimal solution to shortest path is linear in the number of nodes and edges, i.e. . In practice, with , the optimal path was found in all examples in less than 30 seconds. Fig. 4 shows results obtained from both first order and second order formulations.

As noted for the first order formulation, we do not use importance measure for a particular frame being added in the output in our implementation. To add such, say for frame , the weights of all incoming (or outgoing but not both) edges to all nodes may be increased by , where is the penalty for including frame in the output video.

5 Turning Egocentric Video to Stereo

Figure 6: Frame sampling for Stereo: A view from above for the camera path (the line) and the viewing directions of the frames (numbered arrows). The camera wearer walks forward for a couple of seconds. We pick the frames in which the wearer’s head is in the right most position (frames 1,6,10) and left most position (frames 4,8,12) to form stereo pairs. Frame pairs (1,4), (6,8) and (10,12) form the output stereo video.
Figure 7: Two stereo results obtained from our method. The output is shown as anaglyph composite. Please use cyan and red anglyph glasses and zoom to 800% for best view. Readers without anaglyph glasses may note the observed disparity evident from red separation at various pixels. There is higher disparity and larger red separation on the objects near to observer. Stereo video output for these examples are available in the project page11footnotemark: 1.

When walking, the head moves left and right as the body shifts its weight from the left leg to the right leg and back. Pictures taken during the shift of the head to the left and to the right can be used to generate stereo egocentric video. For this purpose we would like to generate two stabilized videos: The left video will sample frames taken when the head moved to the left, and the right video will sample frames taken when the head moved to the right. Fig. 6 gives the schematic approach for generating stereo egocentric videos.

For generating the stereo streams we need to determine the head location. We found the following to work well: (i) Average all optical flow vectors in each frame, and keep one scalar describing the average x-shift for that frame. (ii) Compute for each frame the accumulated x-shift of all preceding frames starting from the first frame. The curve of the accumulated x-shift is very similar to the camera path shown in Fig. 6. Frames near the left peaks are selected for the left video, and frames near the right peaks are selected for the right video.

In perfect stereo pairs the displacement between the two images is a pure sideways translation. In our case we also have forward motion between the two views. The forward motion can disturb stereo perception for objects which are too close, but for objects farther away stereo output produced from the proposed scheme looks good. Fig. 1 shows frames from a stereo video generated using proposed framework.

6 Experiments

In this section we give implementation details and show the results for fast forward as well as stereo. We use publicly available sequences [14, 1, 2, 6] as well as our own videos (for the stereo only) for the demonstration. We used a modified (faster) implementation of [26] for the LK [23] optical flow estimation. We use the code and calibration details given by [15] to correct for lens distortion in their sequences. Feature point extraction and fundamental matrix recovery is performed using VisualSFM [3], with GPU support. The rest of the implementation (FOE estimation, energy terms and shortest path etc.) is in Matlab. All the experiments have been conducted on a standard desktop PC.

6.1 Fast Forward

Name
Src
Resolution
Camera
Num
Frames
Lens
Correction
Walking1 [14]
x
Hero2
Walking2 [14]
x
Hero
Walking3 [26]
x
Hero3
Driving [2]
x
Hero2
Bike1 [14]
x
Hero3
Bike2 [14]
x
Hero3
Bike3 [14]
x
Hero3
Running [1]
x
Hero3+
Table 1: Sequences used for the fast forward algorithm evaluation. All sequences were shot in 30fps, except ‘Running1’ which is 24fps and ‘Walking3’ which is 15fps.

We show results for EgoSampling on publicly available sequences. The details of the sequences are given in Table 1. For the sequences for which we have camera calibration information (marked with checks in the ‘Lens Correction’ column), we estimated the motion direction based on epipolar geometry. We used the FOE estimation method as a fallback when we could not recover the fundamental matrix. For this set of experiments we fix the following weights: , and . We further penalize the use of estimated FOE instead of the epipole with a constant factor . In case camera calibration is not available, we used the FOE estimation method only and changed and . For all the experiments, we fixed (maximum allowed skip). We set the source and sink skip to to allow more flexibility. We set the desired speed up factor to by setting to be times the average optical flow magnitude of the sequence. We show representative frames from the output for one such experiment in Fig.4. Output videos from other experiments are given in the supplementary material111http://www.vision.huji.ac.il/egosampling/.

Running times

The advantage of the proposed approach is in its simplicity, robustness and efficiency. This makes it practical for long unstructured egocentric video. We present the coarse running time for the major steps in our algorithm below. The time is estimated on a standard Desktop PC, based on the implementation details given above. Sparse optical flow estimation (as in [26]) takes 150 milliseconds per frame. Estimating F-Mat (including feature detection and matching) between frame and where takes 450 milliseconds per input frame . Calculating second-order costs takes 125 milliseconds per frame. This amounts to total of 725 milliseconds of processing per input frame. Solving for the shortest path, which is done once per sequence, takes up to 30 seconds for the longest sequence in our dataset ( frames). In all, running time is more than an order of magnitude faster than [15].

User Study

We compare the results of EgoSampling, first and second order smoothness formulations, with naïve fast forward with speedup, implemented by sampling the input video uniformly. For EgoSampling the speed is not directly controlled but is targeted for speedup by setting to be times the average optical flow magnitude of the sequence.

We conducted a user study to compare our results with the baseline methods. We sampled short clips (5-10 seconds each) from the output of the three methods at hand. We made sure the clips start and end at the same geographic location. We showed each of the 35 subjects several pairs of clips, before stabilization, chosen at random. We asked the subjects to state which of the clips is better in terms of stability and continuity. The majority () of the subjects preferred the output of EgoSampling with first-order shakeness term over the naïve baseline. On top of that, preferred the output of EgoSampling using second-order shakeness term over the output using first-order shakeness term.

To evaluate the effect of video stabilization on the EgoSampling output, we tested three commercial video stabilization tools: (i) Adobe Warp Stabilizer (ii) Deshaker 222http://www.guthspot.se/video/deshaker.htm (iii) Youtube’s Video stabilizer. We have found that Youtube’s stabilizer gives the best results on challenging fast forward videos 333We attribute this to the fact that Youtube’s stabilizer does not depend upon long feature trajectories, which are scarce in sub-sampled video as ours.. We stabilized the output clips using Youtube’s stabilizer and asked our 35 subjects to repeat process described above. Again, the subjects favored the output of EgoSampling.

Quantitative Evaluation

Name
Input
Frames
Output
Frames
Median
Skip
Improvement over
Naïve
Walking1
Walking2
Walking3
Driving
Bike1
Bike2
Bike3
Running
Table 2: Fast forward results with desired speedup of factor using second-order smoothness. We evaluate the improvement as degree of epipole smoothness in the output video (column ). Please refer to text for details on how we quantify smoothness. The proposed method gives huge improvement over naïve fast forward in all but one test sequence (‘Driving’), see Fig. 8 for details. Note that one of the weaknesses of the proposed method is lack of direct control over speedup factor. Though the desired speedup factor is , the actual frame skip (column ) differs a lot from target due to conflicting constraint posed by stabilization.

We quantify the performance of EgoSampling using the following measures. We measure the deviation of the output from the desired speedup. We found that measuring the speedup by taking the ratio between the number of input and output frames is misleading, because one of the features EgoSampling is to take large skips when the magnitude of optical flow is rather low. We therefore measure the effective speedup as the median frame skip.

Additional measure is the reduction in epipole jitter between consecutive output frames (or FOE if F-Matrix cannot be estimated). We differentiate the locations of the epipole (temporally). The mean magnitude of the derivative gives us the amount of jitter between consecutive frames in the output. We measure the jitter for our method as well for naive uniform sampling and calculate the percentage improvement in jitter over competition.

Table 2 shows the quantitative results for frame skip and epipole smoothness. There is a huge improvement in jitter by our algorithm. We note that the standard method to quantify video stabilization algorithms is to measure crop and distortion ratios. However since we jointly model fast forward and stabilization such measures are not applicable. The other method could have been to post process the output video with a standard video stabilization algorithm and measure these factors. Better measures might indicate better input to stabilization or better output from preceding sampling. However, most stabilization algorithms rely on trajectories and fail on resampled video with large view difference. The only successful algorithm was Youtube’s stabilizer but it did not give us these measures.

Limitations

Figure 8: A failure case for the proposed method. Two sample frames from the sequence. Note that the frame to frame optical flow computed for this sequence is misleading - most of the field of view is either far away (infinity) or inside the car. In both cases, its near zero. However, since the driver shakes his head every few seconds, the average optical flow magnitude is relatively high. The velocity term causes us to skip many frames until the desired is met, causing large frame skips in the output video. Restricting the maximum frame skip by setting to a small value leads to arbitrary frames being chosen looking sideways, causing shake in the output video.

One notable difference between EgoSampling and traditional fast forward methods is that the number of output frames is not fixed. To adjust the effective speedup, the user can tune the velocity term by setting different values to . It should be noted, however, that not all speedup factors are possible without compromising the stability of the output. For example, consider a camera that toggles between looking straight and looking to the left every frames. Clearly, any speedup factor that is not a multiple of will introduce shake to the output. The algorithm chooses an optimal speedup factor which balances between the desired speedup and what can be achieved in practice on the specific input. Sequence ‘Driving’ (Figure 8) presents an interesting failure case.

Another limitation of EgoSampling is to handle long periods in which the camera wearer is static, hence, the camera is not translating. In these cases, both the fundamental matrix and the FOE estimations can become unstable, leading to wrong cost assignments (low penalty instead of high) to graph edges. The appearance and velocity terms are more robust and help reduce the number of outlier (shaky) frames in the output.

6.2 Stereo

Name
Resolution
Camera
Input
Frames
Stereo Pairs
Extracted
Walking1 x Hero2
Walking4 x Hero3
Walking5 x Hero3
Table 3: Sequences used for stereo evaluation. The sequence ‘Walking1’ was shot by [14]. The other two were shot by us.
Figure 9: Stereo failure case. The proposed framework is challenged by the presence of moving objects and registration failures. The disparity perception is presented incorrectly in the example shown because of registration failure. The image shows the anaglyph composition. Best viewed with red-cyan anaglyph glasses at a zoom level of 800%

Table 3 gives the description of some of the sequences we experimented with for generating stereo video from a monocular egocentric camera. We use publicly available [14] as well as sequences we shot ourselves. Fig. 1 shows some stereo frames generated by our algorithm.

Registration failure and presence of moving objects pose a significant challenge to the proposed stereo generation framework. Objects present very close to the wearer also disturb the stereo perception. Fig. 9 shows one such failure instance where the disparity perception has been wrongly computed because of multiple registration failures.

7 Conclusion

We propose a novel frame sampling technique to produce stable fast forward egocentric videos. Instead of the demanding task of reconstruction and rendering used by the best existing methods, we rely on simple computation of the epipole or the FOE. The proposed framework is very efficient, which makes it practical for long egocentric videos. Because of its reliance on simple optical flow, the method can potentially handle difficult egocentric videos, where methods requiring reconstruction may not be reliable.

We have also presented an approach to use the head motion for generation of stereo pairs. This turns a nuisance into a feature.

Acknowledgement: This research was supported by Intel ICRI-CI, by Israel Ministry of Science, and by Israel Science Foundation.

References

  • [1] Ayala Triangle Run with GoPro Hero 3+ Black Edition. https://www.youtube.com/watch?v=WbWnWojOtIs.
  • [2] GoPro Trucking! - Yukon to Alaska 1080p. https://www.youtube.com/watch?v=3dOrN6-V7V0.
  • [3] VisualSFM : A Visual Structure from Motion System, Changchang Wu, http://ccwu.me/vsfm/.
  • [4] E. W. Dijkstra. A note on two problems in connexion with graphs. NUMERISCHE MATHEMATIK, 1(1), 1959.
  • [5] J. Engel, T. Schöps, and D. Cremer. LSD-SLAM: Large-scale direct monocular SLAM, booktitle = ECCV, year = 2014,.
  • [6] A. Fathi, J. K. Hodgins, and J. M. Rehg. Social interactions: A first-person perspective. In CVPR, 2012.
  • [7] C. Forster, M. Pizzoli, and D. Scaramuzza. Svo: Fast semi-direct monocular visual odometry. In ICRA, 2014.
  • [8] A. Goldstein and R. Fattal. Video stabilization using epipolar geometry. SIGGRAPH, 2012.
  • [9] Google. Google Glass. https://www.google.com/glass/start/.
  • [10] GoPro Inc. GoPro Hero Cameras. http://www.gopro.com.
  • [11] M. Grundmann, V. Kwatra, and I. Essa. Auto-directed video stabilization with robust l1 optimal camera paths. In CVPR, 2011.
  • [12] R. Hartley and A. Zisserman.

    Multiple View Geometry in Computer Vision

    .
    Cambridge University Press, New York, NY, USA, 2 edition, 2003.
  • [13] K. M. Kitani, T. Okabe, Y. Sato, and A. Sugimoto. Fast unsupervised ego-action learning for first-person sports videos. In CVPR, 2011.
  • [14] J. Kopf, M. Cohen, and R. Szeliski. First-person Hyperlapse Videos - Supplemental Material. http://research.microsoft.com/en-us/um/redmond/projects/hyperlapse/supplementary/index.html.
  • [15] J. Kopf, M. Cohen, and R. Szeliski. First-person hyperlapse videos. ACM Transactions on Graphics, 33(4), August 2014.
  • [16] Y. J. Lee, J. Ghosh, and K. Grauman. Discovering important people and objects for egocentric video summarization. In CVPR, 2012.
  • [17] F. Liu, M. Gleicher, H. Jin, and A. Agarwala. Content-preserving warps for 3d video stabilization. In SIGGRAPH, pages 44:1–44:9, 2009.
  • [18] F. Liu, M. Gleicher, J. Wang, H. Jin, and A. Agarwala. Subspace video stabilization. SIGGRAPH, 2011.
  • [19] S. Liu, Y. Wang, L. Yuan, J. Bu, P. Tan, and J. Sun. Video stabilization with a depth camera. In CVPR, 2012.
  • [20] S. Liu, L. Yuan, P. Tan, and J. Sun. Bundled camera paths for video stabilization. SIGGRAPH, 2013.
  • [21] S. Liu, L. Yuan, P. Tan, and J. Sun. Steadyflow: Spatially smooth optical flow for video stabilization. 2014.
  • [22] Z. Lu and K. Grauman. Story-driven summarization for egocentric video. In CVPR, 2013.
  • [23] B. D. Lucas and T. Kanade. An iterative image registration technique with an application to stereo vision. In IJCAI, volume 2, 1981.
  • [24] O. Pele and M. Werman. Fast and robust earth mover’s distances. In ICCV, 2009.
  • [25] N. Petrovic, N. Jojic, and T. S. Huang. Adaptive video fast forward. Multimedia Tools Appl., 26(3):327–344, Aug. 2005.
  • [26] Y. Poleg, C. Arora, and S. Peleg. Temporal segmentation of egocentric videos. In CVPR, pages 2537–2544, 2014.
  • [27] M. S. Ryoo and L. Matthies. First-person activity recognition: What are they doing to me? In CVPR, 2013.
  • [28] D. Sazbon, H. Rotstein, and E. Rivlin. Finding the focus of expansion and estimating range using optical flow images and a matched filter. Machine Vision Applications, 15(4):229–236, 2004.
  • [29] B. Xiong and K. Grauman. Detecting snap points in egocentric video with a web photo prior. In ECCV, 2014.