feature-detection

Feature detection for position: fixed

て烟熏妆下的殇ゞ 提交于 2019-12-03 12:44:30
I am trying to find a script that detects if a device places position: fixed elements relative to the ViewPort and not to the entire document. Currently, standard desktop browsers and Mobile Safari (for iOS 5) do so, whereas Android devices place the fixed elements relative to the entire document. I have found a couple of tests to detect this, but none of the seem to work: http://kangax.github.com/cft/ Gives me a false positive when I pass it from an Android device. https://gist.github.com/1221602 Gives me a false negative when I pass it in an iPhone with iOS 5. Does anybody know where to find

Feature detect opening in a new window/tab(target=_blank) with JavaScript

萝らか妹 提交于 2019-12-03 10:31:23
According to my research: "WebView" can disable "opening links in new windows/tabs". WebView is used by native app developers to display webpages within their app(see Twitter's app). Detecting WebView via user agent doesn't work consistently and isn't a best practice anyway. Simply attempting to open a new window with JS triggers popup blockers; making it an unreliable way to test if a new window can be opened. I need to detect when this feature is not available. Impossible? Additional Explanation I'm trying to detect whether I can open a new window via target=_blank. For example, UIWebView

How to train a Support Vector Machine(svm) classifier with openCV with facial features?

不羁岁月 提交于 2019-12-03 04:35:08
问题 I want to use the svm classifier for facial expression detection. I know opencv has a svm api, but I have no clue what should be the input to train the classifier. I have read many papers till now, all of them says after facial feature detection train the classifier. so far what I did, Face detection, 16 facial points calculation in every frame. below is an output of facial feature detection![enter image description A vector which holds the features points pixel address Note: I know how I can

Javacv Blob detection

守給你的承諾、 提交于 2019-12-03 04:00:40
I would like to use some blob detection in my application which is written in Java and thus using JavaCV instead of OpenCV . I found many classes like: SimpleBlobDetector , CvBlobDetector , CvBlob , ... but I can't find any tutorial or demo/example code to use these in Java. Could anyone please tell me how to use these as I can't figure it out and there's no good documentation for them. Thanks! happyburnout I am just in this moment working on the same problem and have a first solution. There's a lot of approaches out there but unfortunately most of them are ugly and slow. My main goal to this

How to train and predict using bag of words?

白昼怎懂夜的黑 提交于 2019-12-03 03:54:47
问题 I have a folder of images of a car from every angle. I want to use the bag of words approach to train the system in recognizing the car. Once the training is done, I want that if an image of that car is given it should be able to recognize it. I have been trying to learn the BOW function in opencv in order to make this work and have come at a level where I do not know what to do now and some guidance would be appreciated. Here is my code that I used to make the bag of words: Ptr

A good approach for detecting lines in an image?

旧巷老猫 提交于 2019-12-03 01:58:20
问题 I've written some code that uses OpenCV libraries to detect white lines painted on grass. I need someone's opinion on the approach I used (as I'm sure there's a much better way than mine). Also, the results I'm getting are not as good as I expected because slight variations in the image require tweaking the parameters (and I need to operate on fixed parameters). My approach so far: Grab image from webcam (and turn into grayscale obviously) Run it through a threshold filter (using THRESH_TO

General approach to developing an image classification algorithm for Dilbert cartoons

流过昼夜 提交于 2019-12-03 01:06:44
问题 As a self-development exercise, I want to develop a simple classification algorithm that, given a particular cell of a Dilbert cartoon, is able to identify which characters are present in the cartoon (Dilbert, PHB, Ratbert etc.). I assume the best way to do this is to (1) apply some algorithm to the image, which converts it into a set of features, and (2) use a training set and one of many possible machine learning algorithms to correlate the presence/absence of certain features with a

What is `query` and `train` in openCV features2D

纵饮孤独 提交于 2019-12-02 23:06:28
Everywhere in features2D classes I see terms query and train . For example matches have trainIdx and queryIdx , and Matchers have train() method. I know the definition of words train and query in English, but I can't understand the meaning of this properties or methods. P.S. I understand, that it's very silly question, but maybe it's because English is not my native language. To complete sansuiso's answer, I suppose the reason for choosing these names should be that in some application we have got a set of images (training images) beforehand, for example 10 images taken inside your office. The

How to train a Support Vector Machine(svm) classifier with openCV with facial features?

懵懂的女人 提交于 2019-12-02 18:53:30
I want to use the svm classifier for facial expression detection. I know opencv has a svm api, but I have no clue what should be the input to train the classifier. I have read many papers till now, all of them says after facial feature detection train the classifier. so far what I did, Face detection, 16 facial points calculation in every frame. below is an output of facial feature detection![enter image description A vector which holds the features points pixel address Note: I know how I can train the SVM only with positive and negative images, I saw this code here , But I don't know how I

How to determine if an Android device has a touchscreen?

空扰寡人 提交于 2019-12-02 17:55:00
I'm spending considerable time in making my UI to work with keyboard input only. But in the end I'm not sure whether I can rely on the assumption that Android devices all have touch screens. Is there a way to determine if an Android device has a touch screen? You should research the existing devices and read the Android Compatibility Definition Document (CDD) and decide for yourself. I have spent some considerable time trying to figure out this problem for myself. The posters above are correct that Android already powers some non-touch devices and will power Google TV in the near future, but