detection

MapBox water/land detection

你。 提交于 2019-12-03 21:23:12
I am starting to use the MapBox iOS SDK . Is there any possible way to query the MapView by a coordinate and get back the terrain-type (water, land) as a result? I've been reading the API doc for quite a while now, but could not figure it out. I know that there are (interim) solutions available to use a Google webservice, but I need this to work offline. I am not bound to MapBox (but I like it) though, thank you for any hint! No need to delve into runtime styling (see my other answer, false lead): very simple method using mapView.visibleFeatures(at: CGPoint, styleLayerIdentifiers: Set<String>)

Outlier detection of time series data in R [closed]

江枫思渺然 提交于 2019-12-03 15:04:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . What are the steps needed to detect outliers in business sales data (which means there might be trends and seasonality) in R? I have learnt about ACF, PACF, residual, ARIMA model (basically, time series analysis and modelling). Can I use this knowledge to help me identify outliers? Is it also possible to ask R

Color detection opencv

混江龙づ霸主 提交于 2019-12-03 15:03:32
Using opencv, can a detection of a certain colour(Between a certain range of rgb values) be carried out in an image or a video frame? You need to the define the treshold in RGB, and process the pixels in the image (hopefully not the whole image but a smaller region of interest, maybe a moving foreground shape) that fit to the deffinition. Something similar to what is discussed here . I am understanding that you know the color(or colors) you want to detect a priori. I hope this helps. Yes, better convert the image to HSV and try the 'InRangeS' function. Here is an example to track two different

Malicious crawler blocker for ASP.NET

ⅰ亾dé卋堺 提交于 2019-12-03 14:31:30
I have just stumbled upon Bad Behavior - a plugin for PHP that promises to detect spam and malicious crawlers by preventing them from accessing the site at all. Does something similar exist for ASP.NET and ASP.NET MVC? I am interested in blocking access to the site altogether, not in detecting spam after it was posted. EDIT: I am interested specifically in solutions that will detect access patterns to the site - these would prevent screen scraping the site as a whole, or at least make it a very slow process for the offender because the bot would have to act as a regular user in frequency of

How to detect blow in android device microphone

痞子三分冷 提交于 2019-12-03 14:19:44
How can I detect when the user blows into the device microphone? This would then be used to trigger some action by the app. The job of detecting when a user blows into the microphone is separable into two parts: (1) taking input from the microphone and (2) listening for a blowing sound. The noise/sound of someone blowing into the mic is made up of low-frequency sounds. We’ll use a low pass filter to reduce the high frequency sounds coming in on the mic; when the level of the filtered signal spikes we’ll know someone’s blowing into the mic. Source: http://mobileorchard.com/tutorial-detecting

opencv shape detection

╄→гoц情女王★ 提交于 2019-12-03 14:06:41
问题 hi am using opencv for a simple shape detection detect(triangles,polygons,circles) and here is my code: int main() { IplImage* img = cvLoadImage("C:/Users/tarek/Desktop/test5.png"); //show the original image cvNamedWindow("Raw"); cvShowImage("Raw",img); //converting the original image into grayscale IplImage* imgGrayScale = cvCreateImage(cvGetSize(img), 8, 1); IplImage* imgCanny = cvCreateImage(cvGetSize(img), 8, 1); cvCvtColor(img,imgGrayScale,CV_BGR2GRAY); //thresholding the grayscale image

Apache proxy load balancing backend server failure detection

我是研究僧i 提交于 2019-12-03 09:02:40
问题 Here's my scenario (designed by my predecessor): Two Apache servers serving reverse proxy duty for a number of mixed backend web servers (Apache, IIS, Tomcat, etc.). There are some sites for which we have multiple backend web servers, and in those cases, we do something like: <Proxy balancer://www.example.com> BalancerMember http://192.168.1.40:80 BalancerMember http://192.168.1.41:80 </Proxy> <VirtualHost *:80> ServerName www.example.com:80 CustomLog /var/log/apache2/www.example.com.log

Cocos2d iPhone Non-Rectangular Sprite Touch Detection

南笙酒味 提交于 2019-12-03 08:58:59
Have a project with a TRIANGLE shaped graphic in a sprite. I am arranging these sprites in a grid so that their rectangles are all overlapping. As sprites get touched their z-order is being changed (by me) to put them on the top of zOrder. I am using Cocos 0.8.1 and the touch dispatcher method. I have touches working but obviously the "hidden" sprites which are overlapped by other sprites are not able to be touched. The problem is that the "Is the touch in my rect" method is based on the rectangle of the sprite, but the image is a triangle, and I would like to ask if anyone knows a Cocos

Fundamental Frequency + Voice Detection in c#

℡╲_俬逩灬. 提交于 2019-12-03 08:45:06
I'm trying to detect voice throught input from the microphone in real-time. I allready receive the input, execute FFT algorithm and have the result in dB. I have a frequency domain, a time domain and a spectogram. How can I get the fundamental frequency? If I get the fundamental frequency can I specify that if the frequency is between certain values, then it is voice that we are talking? Is there any other way to do this with the things that I allready have? Tks in advance There are many different algorithms for frequency estimation , and the right one to use depends on what you're doing. What

Colorscheme change when filetype changes

大憨熊 提交于 2019-12-03 08:44:49
Is it possible to change the colorscheme in Vim when I open a .vim, .htm, .html, .xml or the _vimrc file? (also change colorscheme when I switch to an already open file with above extension) This is what I want my vim to do: file = txt or a new (not saved) buffer: colorscheme1 (default colorscheme) file = vimrc, vim, html, htm: colorscheme2 I noted also that my vim doesn't detect all filetypes. Text files are not recognized as text file. ps: If this is not possible would it be possible to switch to another colorscheme and keep it when I restart VIM (without changing something in vimrc)? edit :