detection

TensorFlow Object Detection API - what do the losses mean in the object detection api?

馋奶兔 提交于 2019-11-29 03:57:58
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/localization_loss/mul_1 Loss/RPNLoss/localization_loss/mul_1 Loss/RPNLoss/objectness_loss/mul_1 clone_loss_1 The losses for the Region Proposal Network: Loss/RPNLoss/localization_loss/mul_1 : Localization Loss or the Loss of the Bounding Box regressor for the RPN Loss/RPNLoss/objectness_loss/mul_1 : Loss of the Classifier that classifies if a bounding box is an object of interest or background The

Javascript - detect if event lister is supported

冷暖自知 提交于 2019-11-29 02:34:56
问题 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 DOMAttrModified. Firefox and Opera support it, but Chrome and others do not. Thanks if anyone can help! 回答1: Updated answer : Yes , you can feature-detect this. Create an element, listen for the event, and change an attribute on the element. In my tests, you don't even have to add the element to the DOM tree,

OpenCV speed traffic sign detection

ε祈祈猫儿з 提交于 2019-11-29 02:32:01
I have a problem detecting speed traffic signs with opencv 2.4 for Android. I do the following: "capture frame -> convert it to HSV -> extract red areas -> detect signs with ellipse detection" So far ellipse detection works perfect as long as picture is good quality. But as you see in pictures bellow, that red extraction does not work OK, because of poor quality of picture frames, by my opinion. Converting original image to HSV: Imgproc.cvtColor(this.source, this.source, Imgproc.COLOR_RGB2HSV, 3); Extracting red colors: Core.inRange(this.source, new Scalar(this.h,this.s,this.v), new Scalar(230

Python OpenCV - Find black areas in a binary image

狂风中的少年 提交于 2019-11-29 01:12:34
问题 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 via threshold and then invert it to highlight the black areas (that now are white). I can't use third party libraries such as cvblobslob or cvblob 回答1: Basically, you use the findContours function, in combination with many other functions OpenCV provides for especially this purpose. Useful

PHP get real IP (proxy detection)

假装没事ソ 提交于 2019-11-29 01:10:44
问题 I do get track the "real" IP of an user, if he has an proxy wich sends the header of the real IP... does any of have a better solution, or even more headers? Since this function is used very often in the script, it has to be very fast, and it does not seem in that constellation :/ A few suggestions I came up with, but could not realise: put the headers in the order, what is used the most "in the wild", sothat the functions finishes fast making the pre_match-detecting for IP faster ===

OpenCV C++ - Rectangle detection which has irregular side

巧了我就是萌 提交于 2019-11-29 00:28:59
http://oi60.tinypic.com/51lkp.jpg Hi.. I have problem with rectangle detection which has irregular side (not straight) like figure above. actually with method houghline can detect lines on the rectangle with some parameter configuration. After compute intersect and get 4 corner, I can rotate it to normal position. But if I change the image with another rectangle (different size and still has irregular side), I need to reconfigure the parameters again. This is because the line is not detected on four sides, beside that the line can be more than 4. is there any other method beside houghline

Faster RCNN for TensorFlow

懵懂的女人 提交于 2019-11-28 16:59:50
问题 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 are something need to be implemented as following: ROI data layer e.g. roidb. Linear Regression e.g. SmoothL1Loss ROI pool layer post-processing for end-to-end training which should convert the ROI pooling layer's results to feed into CNN for

C/C++/Obj-C Real-time algorithm to ascertain Note (not Pitch) from Vocal Input

点点圈 提交于 2019-11-28 16:55:28
I want to detect not the pitch, but the pitch class of a sung note. So, whether it is C4 or C5 is not important: they must both be detected as C. Imagine the 12 semitones arranged on a clock face, with the needle pointing to the pitch class. That's what I'm after! ideally I would like to be able to tell whether the sung note is spot-on or slightly off. This is not a duplicate of previously asked questions, as it introduces the constraints that: the sound source is a single human voice , hopefully with negligible background interference (although I may need to deal with this) the octave is not

Detecting colors for an Image using PHP

旧街凉风 提交于 2019-11-28 16:33:42
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 Here's a script that will give you the list: function detectColors($image, $num, $level = 5) { $level = (int)$level; $palette = array(); $size = getimagesize($image); if(!$size) { return FALSE; } switch($size['mime']) { case 'image/jpeg': $img = imagecreatefromjpeg($image); break; case 'image/png': $img = imagecreatefrompng($image); break; case 'image/gif': $img = imagecreatefromgif($image); break; default: return FALSE; } if(!$img)

Improving accuracy OpenCV HOG people detector

谁说胖子不能爱 提交于 2019-11-28 15:52:29
问题 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 detectMultiScale -> http://docs.opencv.org/modules/gpu/doc/object_detection.html). But don't work very well... The detections are very noising and the algorithm isn't very accuracy... Why? My camera image is 640 x 480 pixels. The snippet code I'm using is: std::vector<cv::Rect> found, found_filtered; cv: