motion-detection

how to code simple motion tracking?

℡╲_俬逩灬. 提交于 2019-12-06 06:06:41
I am making a sentry turret with servos and a paintball gun and need to implement real time motion tracing to make the gun shoot anything that moves. how can I code this(any good algorithms, books, tutorials)? I want to make it myself and not use premade solutions. Lucas-Kanade with Kalman filtering is the bread and butter motion tracking algorithm. However, it's a bit outdated. We (Success Labs) just published a Lucas-Kanade app for the iPhone. You can read about it here - http://www.success-ware.com/150842/Lucas-Kanade-Detection-for-the-iPhone There's a link to the AppStore, and source code

How to detect movement of object on iPhone's camera screen?

你。 提交于 2019-12-05 21:39:26
问题 I have an application which needs to be able to detect the movement of object or image which is shown on camera screen. Is this possible with the iPhone? 回答1: You'll need to use a motion detection algorithm to do so. Check these links. They should help you get started. Fast, very lightweight algorithm for camera motion detection? How can you track motion using the iPhone's camera? 来源: https://stackoverflow.com/questions/12382780/how-to-detect-movement-of-object-on-iphones-camera-screen

Visual Odometry (aka. Egomotion estimation) with OpenCV

為{幸葍}努か 提交于 2019-12-04 19:26:57
问题 I'm planning to implement an application with augmented reality features. For one of the features I need an egomotion estimation. Only the camera is moving, in a space with fixed objects (nothing or only small parts will be moving, so that they might be ignored). So I searched and read a lot and stumbled upon OpenCV. Wikipedia explicitly states that it could be used for egomotion. But I cannot find any documentation about it. Do I need to implement the egomotion algorithm by myself with

How to extract motion vectors from H.264 AVC CMBlockBufferRef after VTCompressionSessionEncodeFrame

隐身守侯 提交于 2019-12-04 19:20:31
I'm trying read or understand CMBlockBufferRef representation of H.264 AVC 1/30 frame. The buffer and the encapsulating CMSampleBufferRef is created by using VTCompressionSessionRef . https://gist.github.com/petershine/de5e3d8487f4cfca0a1d H.264 data is represented as AVC memory buffer, CMBlockBufferRef from the compressed sample. Without fully decompressing again , I'm trying to extract motion vectors or predictions from this CMBlockBufferRef . I believe that for the fastest performance, byte-by-byte reading from the data buffer using CMBlockBufferGetDataPointer() should be necessary. However

Motion Vector extraction from encoded video file

无人久伴 提交于 2019-12-04 17:42:37
I am trying to extract motion vector data from an encoded mp4 file. In a previous post I found an answer http://www.princeton.edu/~jiasic/cos435/motion_vector.c . But I am not able to run the code without errors . What are the other files that have to be included in the file ? I am a newbie here . So any help would be appreciated . I had modified the source code of mplayer (ffmpeg) to extract motion vectors for any compressed video, I have uploaded the modified mplayer code which can be used for extracting motion vectors here http://www.cs.umd.edu/~bharat/modmplayer.zip You need to do the

unable to detect shake event when my phones screen is off in android

天涯浪子 提交于 2019-12-04 15:49:42
问题 In my application I want to detect the shake event and I'm using SensorEventListener, the code is working fine when my activity is running in foreground. But when I press the lock button of the phone to lock the screen, the shake event can't be detected. I have tested my code on the Samsung gts5360. But the same code is working fine on sony ericssion xperia mini pro. Actually my Samsung phone is not detecting the shake events when I leave the device idle for approx. 45 seconds, after locking

How to detect movement of object on iPhone's camera screen?

强颜欢笑 提交于 2019-12-04 03:41:34
I have an application which needs to be able to detect the movement of object or image which is shown on camera screen. Is this possible with the iPhone? Bijoy Thangaraj You'll need to use a motion detection algorithm to do so. Check these links. They should help you get started. Fast, very lightweight algorithm for camera motion detection? How can you track motion using the iPhone's camera? 来源: https://stackoverflow.com/questions/12382780/how-to-detect-movement-of-object-on-iphones-camera-screen

Opencv Motion detection with tracking

喜夏-厌秋 提交于 2019-12-03 13:25:20
问题 I need a robust motion detection and tracking in web cam's video frames. The background is always the same. The aim is to identify the position of the object, if possible without the shadows, but not so urgent to remove shadows. I've tried the opencv algorithm for background subtraction and thresholding, but this depends on only one image as a background, what if the background changes a little bit in brightness (or camera auto-focus), I need the algorithm to be strong for little changes as

Video files in opencv

你离开我真会死。 提交于 2019-12-03 11:21:18
问题 I want to read video file(.avi or .mov) and detect motion and edges using Opencv.Can u help me with code?I want to create a GUI in which we can select the video file,then we can carry out image processing functions in opencv? 回答1: How to read a video file : Read video file and display it on a window (C API) Read video file and display it on a window (C++ API) Read video file, convert it to grayscale then display it on a window (C API) How to track/detect motion : Opencv Motion detection with

unable to detect shake event when my phones screen is off in android

帅比萌擦擦* 提交于 2019-12-03 09:00:29
In my application I want to detect the shake event and I'm using SensorEventListener, the code is working fine when my activity is running in foreground. But when I press the lock button of the phone to lock the screen, the shake event can't be detected. I have tested my code on the Samsung gts5360. But the same code is working fine on sony ericssion xperia mini pro. Actually my Samsung phone is not detecting the shake events when I leave the device idle for approx. 45 seconds, after locking the device. Then I shake the phone, it does not detect the shake, but when I shake phone after several