Questions tagged [detection]

Detection is a general term that describes the action of finding an object, event or state during a process.

detection
Filter by
Sorted by
Tagged with
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 ...
understack's user avatar
  • 11.4k
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 ...
Jeach's user avatar
  • 8,844
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.
Richie Marquez's user avatar
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 ...
Alex B's user avatar
  • 83.6k
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?
cerebrou's user avatar
  • 5,488
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?
KingNestor's user avatar
  • 66.8k
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 ...
joel's user avatar
  • 747
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.
user1546594's user avatar
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 ...
RyanLiu's user avatar
  • 1,575
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.
niklassaers's user avatar
  • 8,692
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.
Jochen's user avatar
  • 1,766
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 ...
econstantin's user avatar
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 ...
P i's user avatar
  • 29.8k
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?
Soroosh Khoram's user avatar
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
Tech4Wilco's user avatar
  • 6,770
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, ...
God of Biscuits's user avatar
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....
burtek's user avatar
  • 2,625
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 ...
apalopohapa's user avatar
  • 5,083
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 ...
Patrick Moore's user avatar
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 ....
Andrey Solera's user avatar
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> &...
Andres SK's user avatar
  • 10.9k
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/...
이양규's user avatar
  • 213
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 ...
P i's user avatar
  • 29.8k
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 ...
lisak's user avatar
  • 21.8k
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 ...
Šimon Tóth's user avatar
  • 35.9k
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?
sa125's user avatar
  • 28.6k
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 ...
Jon Heese's user avatar
  • 159
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 ...
Ricardo's user avatar
  • 310
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, ...
Meir's user avatar
  • 1,691
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 ...
TVke's user avatar
  • 153
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 ...
bobby123's user avatar
  • 1,016
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....
Meh's user avatar
  • 7,086
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 ...
Ross Vernal's user avatar
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 ...
Toriam's user avatar
  • 167
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 ...
J. Rickson's user avatar
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 ...
Shayan's user avatar
  • 548
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"...
CRQ's user avatar
  • 357
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 ...
Marco L.'s user avatar
  • 1,499
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 ...
Ben's user avatar
  • 5,177
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 ...
Andre Coetzer's user avatar
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 ...
zic10's user avatar
  • 2,330
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, ...
SMD's user avatar
  • 131
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 ...
daGUY's user avatar
  • 27.9k
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 ...
Robse's user avatar
  • 131
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 ...
Arek van Schaijk's user avatar
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 ...
Mark A. Donohoe's user avatar
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 ...
Jon Cage's user avatar
  • 36.9k
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 ...
george's user avatar
  • 705
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 ...
user avatar

1
2 3 4 5
44