processing

C# image processing on Kinect video using AForge

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My goal : use Kinect video to do shape recognition (large rectangle on the picture), draw rectangle on the picture to highlights the results and display. The techno I use : C# code, AForge and more specifically its shape checker http://www.aforgenet.com/articles/shape_checker/ How the magic should work : Every time a frame is ready I get the frame data as bytes array and transform it to bitmap to allow me to analyze it Apply the shape recognition algorithm Render the result... My problem : The whole process works so far but when I try to

Parallel Processing/Parallel Programming in C#

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to process more than one function that goes and performs results returning the same type of records. I am using c# under visual studio 2010 considering the functions i have are: class Search{ public list<wrecords> GetrecordsofAAA(string term); public list<wrecords> GetrecordsofBBB(string term); public list<wrecords> GetrecordsofCCC(string term); } and im calling the functions this way list<wrecords> records1 = Search.GetrecordsofAAA(heart); list<wrecords> records2 = Search.GetrecordsofBBB(heart); list<wrecords> records3 = Search

Processing XML in Python with ElementTree

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with ElementTree.iter(). So I tried this example in this link : http://eli.thegreenplace.net/2012/03/15/processing-xml-in-python-with-elementtree/ So here's what I've tried: import elementtree.ElementTree as ET tree = ET.parse('XML_file.xml') root = tree.getroot() for elem in tree.iter(): print elem.tag, elem.attrib And I get this error AttributeError: ElementTree instance has no attribute 'iter' Additional info: The version of my Python is 2.4 I separately installed elementtree. Other examples in the link that I provide is

OpenCV Mat processing time

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'd like to know whether having different variables for the src (source) and dst (destination) of an OpenCV function will have an effect on the processing time. I have two functions below that does the same thing. public static Mat getY(Mat m){ Mat mMattemp = new Mat(); Imgproc.cvtColor(m,mMattemp,Imgproc.COLOR_YUV420sp2RGB); Imgproc.cvtColor(mMattemp,mMattemp, Imgproc.COLOR_RGB2HSV); Core.inRange(mMattemp, new Scalar(20, 100, 100), new Scalar(30, 255, 255), mMattemp); return mMattemp; } VERSUS public static Mat getY(Mat m){ Mat mMattemp_rgb

Batch processing Pandoc conversions in Windows

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to convert a large number of HTML files into Markdown using Pandoc in Windows, and have found an answer on how to do this on a Mac , but receive errors when attempting to run the following in Windows PowerShell. find . -name \*.md -type f -exec pandoc -o {}.txt {} \; Can someone help me translate this to work in Windows? 回答1: to convert files in folders recursively try this (Windows prompt command line): for /r "startfolder" %i in (*.htm *.html) do pandoc -f html -t markdown "%~fi" -o "%~dpni.txt" For use in a batch file double

Processing JSON using java Mapreduce

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to hadoop mapreduce I have input text file where data has been stored as follow. Here are only a few tuples (data.txt) This is my java file that I am supposed to write my code in (CombineBooks.java) package org.hwone; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.util.GenericOptionsParser; //TODO import necessary components /* * Modify this file to combine books from the same other into * single JSON object. * i.e. {"author": "Tobias Wells", "books": [{"book":"A die in

Signal processing library in Java? [closed]

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'd like to compute power spectral density of time series; do some bandpass, lowpass, and highpass filtering; maybe some other basic stuff. Is there a nice open-source Java library to do this? I've hunted a bit without success (e.g., Googling "power spectral density java" or "signal processing java" and clicking through links, looking in Apache Commons, Sourceforge, java.net, etc.). There are lots of applets, books, tutorials, commercial products, etc., that don't meet my needs. Update : I found org.apache.commons.math.transform for Fourier

DOMException: Error processing ICE candidate

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get this error DOMException: Error processing ICE candidate when I try to add an ice candidate. Here's the candidate: candidate:1278028030 1 udp 2122260223 10.0.18.123 62694 typ host generation 0 ufrag eGOGlVCnFLZYKTsc network-id 1 Moreover, it doesn't always happen - other time everything goes smoothly. I can't reproduce a consistent pattern where it would throw this error. Any ideas how to go about solving this / debugging it would be appreciated! 回答1: This problem is almost totally undocumented, and to make matters worse only Google

ERROR:The processing instruction target matching “[xX][mM][lL]” is not allowed [duplicate]

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: Error: The processing instruction target matching “[xX][mM][lL]” is not allowed 5 answers I am using eclipse to program an android app and i came to a halt. I tried closing my code with <?xml version="1.0" encoding="utf-8"?> But I keep getting the error message "The processing instruction target matching "[xX][mM][lL]" is not allowed." Here's the code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android

UnicodeDecodeError while processing filenames

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Python 2.7.3 on Ubuntu 12 x64. I have about 200,000 files in a folder on my filesystem. The file names of some of the files contain html encoded and escaped characters because the files were originally downloaded from a website. Here are examples: Jamaica%2008%20114.jpg thai_trip_%E8%B0%83%E6%95%B4%E5%A4%A7%E5%B0%8F%20RAY_5313.jpg I wrote a simple Python script that goes through the folder and renames all of the files with encoded characters in the filename. The new filename is achieved by simply decoding the string that makes up