Questions tagged [detection]
Detection is a general term that describes the action of finding an object, event or state during a process.
detection
2,187
questions
502
votes
129
answers
92k
views
Stopping scripters from slamming your website
I've accepted an answer, but sadly, I believe we're stuck with our original worst case scenario: CAPTCHA everyone on purchase attempts of the crap. Short explanation: caching / web farms make it ...
372
votes
30
answers
400k
views
How to detect page zoom level in all modern browsers?
How can I detect the page zoom level in all modern browsers? While this thread tells how to do it in IE7 and IE8, I can't find a good cross-browser solution.
Firefox stores the page zoom level for ...
165
votes
16
answers
380k
views
How to detect the physical connected state of a network cable/connector?
In a Linux environment, I need to detect the physical connected or disconnected state of an RJ45 connector to its socket. Preferably using BASH scripting only.
The following solutions which have ...
124
votes
11
answers
111k
views
How can I detect if the user is on localhost in PHP?
In other words, how can I tell if the person using my web application is on the server it resides on? If I remember correctly, PHPMyAdmin does something like this for security reasons.
115
votes
7
answers
101k
views
Detecting CPU architecture compile-time
What is the most reliable way to find out CPU architecture when compiling C or C++ code? As far as I can tell, different compilers have their own set of non-standard preprocessor definitions (_M_X86 ...
114
votes
6
answers
85k
views
What is the mAP metric and how is it calculated? [closed]
In Computer Vision and Object Detection, a common evaluation method is mAP.
What is it and how is it calculated?
88
votes
8
answers
120k
views
How can I detect if Flash is installed and if not, display a hidden div that informs the user?
How can I use javascript/jQuery/etc to detect if Flash is installed and if it isn't, display a div that contains information informing the user that they need to install flash?
50
votes
6
answers
13k
views
Just upgraded my OS X to Yosemite, Android Device Chooser not showing device - what to do?
After upgrading to OS X Yosemite I found that eclipse was not working because JAVA was not properly installed. I installed it and now I am able to open eclipse.
When I connect my device, I am able ...
50
votes
4
answers
31k
views
Detecting Operating Systems in Ruby [duplicate]
Is there a way to detect the operating system in ruby? I am working on developing a sketchup tool that will need to detect Mac vs. Windows.
45
votes
1
answer
19k
views
Faster RCNN for TensorFlow
Has anyone implement the FRCNN for TensorFlow version?
I found some related repos as following:
Implement roi pool layer
Implement fast RCNN based on py-faster-rcnn repo
but for 1: assume the roi ...
43
votes
5
answers
59k
views
NLTK and language detection
How do I detect what language a text is written in using NLTK?
The examples I've seen use nltk.detect, but when I've installed it on my mac, I cannot find this package.
33
votes
3
answers
33k
views
How to detect current JSF-Version?
I am developing a jsf-webapp and now I need to know what JSF-Version I am using? Where can I look this up? Thanks in advance.
33
votes
5
answers
41k
views
Detect which image is sharper
I'm looking for a way to detect which of two (similar) images is sharper.
I'm thinking this could be using some measure of overall sharpness and generating a score (hypothetical example: image1 has ...
32
votes
5
answers
20k
views
Cepstral Analysis for pitch detection
I'm looking to extract pitches from a sound signal.
Someone on IRC just explained to me how taking a double FFT achieves this. Specifically:
take FFT
take log of square of absolute value (can be ...
27
votes
4
answers
50k
views
Determine if a point is inside or outside of a shape with opencv
I have images with white background and simple shapes in them (each image has one shape). I want to determine if a certain point (x,y) is inside the shape or not. How can I do that with opencv?
27
votes
2
answers
7k
views
Detecting colors for an Image using PHP
How can I detect the top 2 colors of an Image in PHP?
for example I have this image:
This function/process will return: 0000FF or blue and FFFF00 or YELLOW
Thanks
26
votes
4
answers
37k
views
Notification of or detecting screenshot before being taken?
Is there a notification or other mechanism of being informed that the user is taking a screenshot with the home/power buttons?
I've seen threads about wanting to disable the taking of screenshots, ...
24
votes
2
answers
46k
views
detecting a redirect with javascript - how?
Is there any way to detect whether a webpage is going to redirect me to another, knowing its URL? I mean the situation when you type URL in a text field and the script examines it for 3xx redirections....
23
votes
4
answers
13k
views
How to tell if sqlite database file is valid or not
In the code below, pathToNonDatabase is the path to a simple text file, not a real sqlite database. I was hoping for sqlite3_open to detect that, but it doesn't (db is not NULL, and result is ...
23
votes
4
answers
9k
views
Use jQuery to detect whether a device can make telephone calls (supports "tel://" protocol)
In my website, I have several links like so:
<a href="tel://+12181112222" class="call">218.111.2222</a>
I want to use jQuery (or other method) to determine whether the device supports ...
22
votes
1
answer
5k
views
NWPathMonitor not calling satisfied in Swift
I'm using NWPathMonitorto detect when internet connection is on and off. The method gets called when both states happens, however when the internet connection is on, the called status still is ....
20
votes
5
answers
18k
views
jQuery: detecting cmd+click / control+click
i have the options of my web application in tabs.
<ul id="tabs">
<li><a href="a.php">aaa</a></li>
<li><a href="b.php">bbb</a></li>
&...
20
votes
3
answers
14k
views
TensorFlow Object Detection API - what do the losses mean in the object detection api?
What do each for the following losses mean? (in the TensorFlow Object detection API, while training FasterRCNN based models)
Loss/BoxClassifierLoss/classification_loss/mul_1
Loss/BoxClassifierLoss/...
18
votes
4
answers
5k
views
iOS / C: Algorithm to detect phonemes
I am searching for an algorithm to determine whether realtime audio input matches one of 144 given (and comfortably distinct) phoneme-pairs.
Preferably the lowest level that does the job.
I'm ...
17
votes
4
answers
40k
views
Getting MimeType subtype with Apache tika
I'd need to get the iana.org MediaType rather than application/zip or application/x-tika-msoffice for documents like, odt, ppt, pptx, xlsx etc.
If you look at mimetypes.xml there are mimeType ...
17
votes
6
answers
40k
views
Similar code detector
I'm search for a tool that could compare source codes for similarity.
We have a very trivial system right now that has huge amount of false positives and the real positives can easily get buried in ...
16
votes
7
answers
16k
views
Can I detect unicode string language code?
I'm faced with a situation where I'm reading a string of text and I need to detect the language code (en, de, fr, es, etc).
Is there a simple way to do this in python?
16
votes
2
answers
58k
views
Apache proxy load balancing backend server failure detection
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 ...
15
votes
1
answer
18k
views
Improving accuracy OpenCV HOG people detector
I'm working in a project. A part of project consist to integrate the HOG people detector of OpenCV with a camera streaming .
Currently It's working the camera and the basic HOG detector (CPP ...
15
votes
4
answers
9k
views
Cycle detection in linked list with the Hare and Tortoise approach
I understand that in order to detect a cycle in a linked list I can use the Hare and Tortoise approach, which holds 2 pointers (slow and fast ones). However, after reading in wiki and other resources, ...
15
votes
8
answers
20k
views
Detect emoticons in string
I found that you need PHP 7 and MySQL 5.5 to use emoticons in a string that you want to upload to the database.
I don't have these specification on my server so I want to give an error message in ...
15
votes
4
answers
18k
views
Android - How to approach fall detection algorithm
I want to be able to feature a fairly simple fall detection algorithm in my application. At the moment in onSensorChanged(), I am getting the absolute value of the current x,x,z values and subtracting ...
15
votes
4
answers
4k
views
Best way to detect IronPython
I need to write a module which will be used from both CPython and IronPython. What's the best way to detect IronPython, since I need a slightly different behaviour in that case?
I noticed that sys....
15
votes
4
answers
15k
views
How does Windows Azure Service Bus Queues Duplicate Detection work?
I know that you can set duplicate detection to work over a time period with an azure service bus queue. However, does anyone know whether this works based on the objects in the queue?
So if I have an ...
15
votes
2
answers
32k
views
Detect circles in openCV
I have a problem with choosing right parameters for HoughCircles function. I try to detect circles from video. This circles are made by me, and has almost the same dimension. Problem is that camera is ...
15
votes
4
answers
7k
views
Detecting stack overflows during runtime beforehand
I have a rather huge recursive function (also, I write in C), and while I have no doubt that the scenario where stack overflow happens is extremely unlikely, it is still possible. What I wonder is ...
15
votes
2
answers
3k
views
Linux Kernel Rootkit samples [closed]
I'm working on some new techniques for Linux Kernel Rootkit Detections as my thesis. I need some sample of rootkits to test my method and also do some machine learning tests.
But not the old-dusty ...
14
votes
5
answers
29k
views
Detect mouse direction - JavaScript
var direction = ""
var mousemovemethod = function (e) {
var oldx = 0;
if (e.movementX < oldx) {
direction = "left"
} else if (e.movementX > oldx) {
direction = "right"...
14
votes
5
answers
29k
views
Python OpenCV - Find black areas in a binary image
There is any method/function in the python wrapper of Opencv that finds black areas in a binary image? (like regionprops in Matlab)
Up to now I load my source image, transform it into a binary image ...
14
votes
2
answers
6k
views
Detect if event listener is supported
Is it possible to detect if certain events are supported in certain browsers?
I can detect if the browser supports document.addEventListener, but I need to know if it supports the event ...
14
votes
3
answers
8k
views
Finding the Sky/Ground separation in OpenCV
I am trying to detect the horizon in an image, and return a mask of the sky (or inverted as the ground). While there seems to be many uses for it, I am battling to find a good solution. What's worse ...
13
votes
4
answers
11k
views
iOS Motion Detection: Motion Detection Sensitivity Levels
I have a simple question. I'm trying to detect when a user shakes the iPhone. I have the standard code in place to detect the motion and this works no problem. However, in testing this on my actual ...
13
votes
3
answers
785
views
Digital image processing of corn kernels
I am trying to identify and count insect-infested corn kernels from good or healthy corn kernels. I have done the thresholding up until drawing contours around all the corn kernels in the image.
FYI, ...
13
votes
8
answers
9k
views
How do I detect Chromium specifically vs. Chrome?
Is there a way to detect if a visitor to my site is running Chromium as opposed to Google Chrome? Even basic UA sniffing (which I know is bad practice) would suffice for my particular case, but it ...
13
votes
2
answers
14k
views
How to detect a cracked iPhone App and a jailbroken device (different methods) [duplicate]
I'm building a blacklisting service for cracked iPhone apps and I am curious if I missed a method for detecting cracked apps.
In the moment following app crack detection methods are available for the ...
13
votes
2
answers
7k
views
What is a proper way to detect the support of css "flex-box" and "flex-wrap"?
I'm looking for a solution how we can detect the support of css flex-box and flex-wrap by JavaScript.
I'm aware of modernizr which can do the job but my client does not allow us to load any scripts ...
13
votes
1
answer
2k
views
What would be the most efficient way to detect all closed paths in a collection of segments and connectors?
We have a data set which is comprised of Connectors and Segments. Each segment has exactly two connectors, but each connector can belong to zero or more segments (i.e. connector 'A' in the left image ...
12
votes
3
answers
22k
views
How to check an object's type in C++/CLI?
Is there a simple way to check the type of an object? I need something along the following lines:
MyObject^ mo = gcnew MyObject();
Object^ o = mo;
if( o->GetType() == MyObject )
{
// Do ...
12
votes
6
answers
58k
views
Python: How can I find an image on screen by using: pyautogui lib?
The code is:
import pyautogui
startButton = pyautogui.locateOnScreen('start.png')
print startButton
Or:
import pyautogui
startButton = pyautogui.locateCenterOnScreen('start.png')
print startButton
...
12
votes
7
answers
20k
views
Problem with cocos2D for iPhone and touch detection
I just don't get it.
I use cocos2d for development of a small game on the iPhone/Pod. The framework is just great, but I fail at touch detection. I read that you just need to overwrite the proper ...