video-processing

Exception: “ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library” occur

纵然是瞬间 提交于 2019-12-10 10:25:18
问题 I read about library-xuggle-xuggler from Stackoverflow and I have added the below jars as slf4j-api-1.6.4.jar, commons-cli-1.1.jar, logback-core-1.0.0.jar, logback-classic-1.0.0.jar, xuggle-utils-1.20.688.jar, xuggle‑xuggler-5.2.jar sequentially in java class path(order and export tab) as mentioned in the post. But unfortunately i am still getting exception bellow yet: 14:14:00.941 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle; version: 5; Visit http://www

Color tracking using EMGUcv

 ̄綄美尐妖づ 提交于 2019-12-10 09:45:59
问题 I am trying to make an colored object tracker which uses a binary image and blob detector to follow the target sort of like this: https://www.youtube.com/watch?v=9qky6g8NRmI . However I can not figure out how the ThresholdBinary() method work and if it is even the right one. Here is a relevant bit of the code: cam._SmoothGaussian(3); blobDetector.Update(cam); Image<Bgr,byte> binaryImage = cam.ThresholdBinary(new Bgr(145,0,145),new Bgr(0,0,0)); Image<Gray,byte> binaryImageGray = binaryImage

How to merge an Audio and Video files in Android

江枫思渺然 提交于 2019-12-10 03:45:24
问题 I have a small video clip and an audio file. The problem is how to write code to merge them into a single file. i have never written code for multimedia applications for android and don't know if the merging is possible with android media framework. Is there any third party library to do that? Can we right a merging code in Java and call it in Android? Please guide me through this. Thanks 回答1: You can try INDE Media for Mobile, tutorials are here: https://software.intel.com/en-us/articles

ffmpeg adding play image to thumbnail output [duplicate]

瘦欲@ 提交于 2019-12-09 23:58:06
问题 This question already has an answer here : How to add transparent watermark in center of a video with ffmpeg? (1 answer) Closed last year . Hey all I am currently able to get a thumbnail capture from my MP4 video by doing the following command line: [Sets Per-file main options time_off start time offset] || [The # of start time offsets] || || [Sets input video file option] || || || [Video file name here] || || || || [Sets video option to # of video frames to record] || || || || || [Asking for

Filter out only one contour in OpenCV C/C++

坚强是说给别人听的谎言 提交于 2019-12-09 18:18:44
问题 I'm trying to make a program to detect an object in any shape using a video camera/webcam based on Canny filter and contour finding function. Here is my program: int main( int argc, char** argv ) { CvCapture *cam; CvMoments moments; CvMemStorage* storage = cvCreateMemStorage(0); CvSeq* contours = NULL; CvSeq* contours2 = NULL; CvPoint2D32f center; int i; cam=cvCaptureFromCAM(0); if(cam==NULL){ fprintf(stderr,"Cannot find any camera. \n"); return -1; } while(1){ IplImage *img=cvQueryFrame(cam)

OpenCV grouping white pixels

杀马特。学长 韩版系。学妹 提交于 2019-12-09 12:15:36
问题 I've done the hard work, turning my iSight camera on my MacBook into an infrared camera, converted it, set the threshold etc.. and now have an image that looks something like this: alt text My problem is now; I need to know how many blobs are on my image by grouping the white pixels. I don't want to use cvBlob / cvBlobsLib , I'd rather just use what is already in OpenCV. I can loop through the pixels and group them by checking for (thresholded) touching white pixels, but I'm guessing there is

Taking photo every 66 milliseconds on Android phone for colour analysis (Heart Rate Monitor)

风格不统一 提交于 2019-12-09 06:32:20
问题 I'm doing a final year project at university which involves making a medical application for Android, as a practice I have to make a heart rate monitor app. I have worked out that the best way to do this is to look for colour changes in your blood when holding the camera against your finger with the flash switched on. This is where the problems come into play, is it possible to take a photo every 66 milliseconds on the camera, then compare each pair of photos for any intensity changes in

Lossless compression for video in opencv

这一生的挚爱 提交于 2019-12-08 19:41:50
问题 I am working on a video processing project that involves some sort of encryption using simple XOR operation of a given frame from camera with a key image and finally store the video file. And for decryption phase the XOR operation with the same image will get the original frames. But the problem is while I decrypt the frame appears to be very noisy and found out that its because of the lossy image compression foramt I used while storing. Is there any other lossless image compression foramts

Android MP4Parser cannot play video

与世无争的帅哥 提交于 2019-12-08 19:35:31
I'm attempting to append a simple, 3 second outro video to an existing video using MP4Parser , but for some reason I cannot play the video after the merge happens. I'm getting the infamous "Sorry, this video cannot be played" error when trying to play the video from my gallery. Anyone have similar experience doing this? I'm testing on an HTC One running 4.4 KitKat Here's my method to merge to .mp4 clips into a single one, taken from the AppendExample from MP4Parser itself. private void createFinalOutputVideo() { CameraHelper helper = new CameraHelper(this); File outFile = helper

Use PHP or Flash to extract a frame from a video

回眸只為那壹抹淺笑 提交于 2019-12-08 17:00:41
The quick question: is there a pure PHP library that can extract a frame from the video to use as the thumbnail? I guess the answer is "no" but let me know if I am wrong :-) ffmpeg wrappers will not go, since I want this feature to work on most hostings without special PHP modules or binaries to launch. There might also be some tool to do this on the client side with flash for example... This also acceptable. I'll just have to upload the flash-generated content to the server. This script claims to be able to do it just by using GD 来源: https://stackoverflow.com/questions/3147428/use-php-or