Questions tagged [detection]

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

2021 questions
494
votes
129 answers

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 impossible to track hits, and any workaround (sending…
Dave Rutledge
  • 5,475
  • 7
  • 25
  • 24
330
votes
27 answers

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 future access. On the first page load, would I be…
understack
  • 10,311
  • 23
  • 72
  • 97
150
votes
16 answers

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 been proposed on other sites do NOT work for this…
Jeach
  • 7,653
  • 7
  • 43
  • 56
103
votes
10 answers

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
  • 1,989
  • 3
  • 17
  • 18
101
votes
6 answers

What is the mAP metric and how is it calculated?

In computer vision and object detection, the common evaluation method is mAP. What is it and how is it calculated?
cerebrou
  • 4,031
  • 12
  • 36
  • 62
88
votes
8 answers

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
  • 59,315
  • 50
  • 115
  • 149
87
votes
7 answers

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 in MSVS, __i386__, __arm__ in GCC, etc). Is there…
Alex B
  • 75,980
  • 39
  • 193
  • 271
50
votes
6 answers

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 to see my device on the device list in eclipse.…
joel
  • 747
  • 2
  • 9
  • 20
46
votes
4 answers

Detecting Operating Systems in Ruby

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
  • 499
  • 1
  • 4
  • 4
45
votes
1 answer

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 pooling layer works (I haven't tried), and there…
RyanLiu
  • 1,347
  • 2
  • 17
  • 23
36
votes
4 answers

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
  • 7,810
  • 18
  • 90
  • 141
32
votes
5 answers

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 done with lookup table) take another FFT take…
P i
  • 25,182
  • 33
  • 133
  • 229
28
votes
5 answers

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 sharpness score of 9, image2 has sharpness score of…
econstantin
  • 751
  • 1
  • 7
  • 15
27
votes
3 answers

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
  • 1,646
  • 3
  • 21
  • 45
26
votes
2 answers

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
  • 6,620
  • 3
  • 43
  • 80
1
2 3
99 100