video-processing

Pupil Center is Jumping a Lot in Real Time Eye Tracking

假如想象 提交于 2019-12-02 03:20:57
问题 In my eye tracking project, the pupil center is jumping a lot and I don't see it as a fixed point. What should I do? My idea is comparing the pupil center and pupil in 2 frames with a threshold but it doesn't help the problem. Another point is camera noise. What should I do to reduce the noises? I used the starburst algorithm. Starburst : A hybrid algorithm for video-based eye tracking combining feature-based and model-based approaches. 回答1: Eye trackers come with 2 types of noise/errors:

Pupil Center is Jumping a Lot in Real Time Eye Tracking

余生长醉 提交于 2019-12-01 23:34:45
In my eye tracking project, the pupil center is jumping a lot and I don't see it as a fixed point. What should I do? My idea is comparing the pupil center and pupil in 2 frames with a threshold but it doesn't help the problem. Another point is camera noise. What should I do to reduce the noises? I used the starburst algorithm . Starburst : A hybrid algorithm for video-based eye tracking combining feature-based and model-based approaches. Eye trackers come with 2 types of noise/errors: variable and systematic error. Variable noise is basically the dispersion around the gazed target and the

Extract all video frame from mp4 video using OpenCV and C++

眉间皱痕 提交于 2019-12-01 22:21:42
I'm following a tutorial to extract video frames. I've read this question , it doesn't work, also queationfrom Open CV Answer , but the solution is for capturing current frame. I have a 120fps video and want to extract all of them. Here's my code #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <string> #include <sstream> using namespace cv; using namespace std; int c = 0; string int2str(int &); int main(int argc, char **argv) { string s; VideoCapture cap("test.mp4"); // video if (!cap.isOpened()) { cout

How to cut a sub-part of an image using Emgu CV (or OpenCV)?

妖精的绣舞 提交于 2019-12-01 17:59:24
I want to cut a sub-purt of an image (or crop it) using Emgu CV (or OpenCV) and calculate average color of that part; looking for changes. Thanks Set the ROI (Region of Interest) of the image you are working with this will mean any calculation is only done over this area. image.ROI = new Rectangle(x,Y,Width,Height); Calculate the Average of the ROI where "TYPE" is image dependant Bgr for colour Gray for Grayscale TYPE average = image.GetAverage(image); When youve finished reset your image ROI so you can see the whole image again. All the process does is loop through each pixel adds its value

Straightforward solution on how to stereo calibration and rectifications OpenCV?

与世无争的帅哥 提交于 2019-12-01 12:39:01
I have been digging on this topic for almost a week and couldn't find any solid solution yet. It is interesting that no one ever posted a straightforward solution on how to calibrate and rectify a stereo camera with OpenCV in order to compute the depth, from here and there( this for calibration and this for rectification, the codes posted are not quite integrated though) I have come up with the following code snap, BUT it does not rectify the image OK!! import numpy as np import cv2 import glob # termination criteria criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) #

Straightforward solution on how to stereo calibration and rectifications OpenCV?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 11:15:28
问题 I have been digging on this topic for almost a week and couldn't find any solid solution yet. It is interesting that no one ever posted a straightforward solution on how to calibrate and rectify a stereo camera with OpenCV in order to compute the depth, from here and there(this for calibration and this for rectification, the codes posted are not quite integrated though) I have come up with the following code snap, BUT it does not rectify the image OK!! import numpy as np import cv2 import

How to record video with overlay view

让人想犯罪 __ 提交于 2019-12-01 10:45:46
Hi I am trying to record video with overlay. I have written: -(void)addOvelayViewToVideo:(NSURL *)videoURL to add overlay view on recorded video but it is not working. I written the code to record video in viewDidLoad using AVCaptureSession . //In ViewDidLoad //CONFIGURE DISPLAY OUTPUT self.previewLayer = [AVCaptureVideoPreviewLayer layerWithSession:self.captureSession]; [self.previewLayer setVideoGravity:AVLayerVideoGravityResizeAspectFill]; self.previewLayer.frame = self.view.frame; [self.view.layer addSublayer:self.previewLayer]; -(void)captureOutput:(AVCaptureFileOutput *)captureOutput

Video processing Inter-frame Prediction [closed]

若如初见. 提交于 2019-12-01 08:13:59
I need to perform 'Inter-frame Prediction' and 'Motion Compensation' of a set of 30 frames for video processing in Matlab. I am working with Mother-daughter frames. What I have done so far is to take the very first frame and divided it into 8x8 blocks performed DCT quantized it dequantized it performed inverse DCT. I know that No motion estimation is required for the first frame and second frame onwards, the reconstructed frame one is used as reference for frame two and so on. For motion estimation I need to implement 'Full-search Block Matching Algorithm' Question 1 : What is meant by

Video processing Inter-frame Prediction [closed]

心已入冬 提交于 2019-12-01 07:18:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I need to perform 'Inter-frame Prediction' and 'Motion Compensation' of a set of 30 frames for video processing in Matlab. I am working with Mother-daughter frames. What I have done so far is to take the very first frame and divided it into 8x8 blocks performed DCT quantized it

Video merging in background iOS

南楼画角 提交于 2019-12-01 01:56:16
问题 Task: Merge flyer image into flyer video. Cases : Create a flyer[add emoticon image/text..etc] Create video Case1 Press back button[user will go to app listing of flyers screen], during this we are merging flyerSnapShoot in flyerVideo.and it works perfectly . Going to Phone Gallery we are seeing the updated video in it. Case2 Press iPhone Home button, I am doing things same as above but facing the following error . FAIL = Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could