detection

Detect AppStore installation of iOS app

喜欢而已 提交于 2019-12-03 07:57:13
I need to implement a custom logging in my app. To do this i need to detect if the current version of the app has been installed from the app store or is running from xcode or is a TestFlight version. There is something different in the app depending from the installation source? I don't want to have something different in the development environment. You can get part of the way there by reading in the embedded.mobileprovision file from the application bundle: NSString *provisionPath = [[NSBundle mainBundle] pathForResource:@"embedded" ofType:@"mobileprovision"]; If that does not exist, you

iOS / C: Algorithm to detect phonemes

随声附和 提交于 2019-12-03 07:56:42
问题 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 developing radical / experimental musical training software for iPhone / iPad. My musical system comprises 12 consonant phonemes and 12 vowel phonemes, demonstrated here. That makes 144 possible phoneme pairs. The student has to sing the correct phoneme pair 'laa duu bee' etc in response to visual

Problem with cocos2D for iPhone and touch detection

老子叫甜甜 提交于 2019-12-03 05:11:33
问题 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 functions (e.g. "touchesBegan" ) in the implementation of a class wich subclasses CocosNode. But it doesn't work. What could I do wrong? the function: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{NSLog(@"tickle, hihi!");} did I get it totally wrong? Thank you! 回答1: Layer is the

opencv shape detection

天涯浪子 提交于 2019-12-03 05:06:41
hi am using opencv for a simple shape detection detect(triangles,polygons,circles) and here is my code: int main() { IplImage* img = cvLoadImage("C:/Users/tarek/Desktop/test5.png"); //show the original image cvNamedWindow("Raw"); cvShowImage("Raw",img); //converting the original image into grayscale IplImage* imgGrayScale = cvCreateImage(cvGetSize(img), 8, 1); IplImage* imgCanny = cvCreateImage(cvGetSize(img), 8, 1); cvCvtColor(img,imgGrayScale,CV_BGR2GRAY); //thresholding the grayscale image to get better results cvThreshold(imgGrayScale,imgGrayScale,128,255,CV_THRESH_BINARY); CvSeq* contours

ANDROID - color detection using openCV - how to?

走远了吗. 提交于 2019-12-03 03:57:10
问题 my goal is to display a threshed image using the HSV color space in a way that only yellow objects will be shown. i use this code (based on a code given by the openCV 2.3.1 android samples): protected Bitmap processFrame(VideoCapture capture) { //capture.retrieve(mGray, Highgui.CV_CAP_ANDROID_GREY_FRAME); //Imgproc.cvtColor(mGray, mRgba, Imgproc.COLOR_GRAY2RGBA, 4); capture.retrieve(mHSV, Highgui.CV_CAP_ANDROID_COLOR_FRAME_RGBA); Imgproc.cvtColor(mHSV, mRgba, Imgproc.COLOR_RGB2HSV, 4); //Core

HoughCircles circle detection using opencv and python-

怎甘沉沦 提交于 2019-12-03 03:20:54
I am trying to use OpenCV's (Hough)Circle detection to.. detect circles. I created a solid circle on a black background, tried to play with the parameters, used blur and everything, but I am just not able to make it find anything. Any ideas, suggestions etc. would be great, thank you! my current code is something like this: import cv2 import numpy as np """ params = dict(dp=1, minDist=1, circles=None, param1=300, param2=290, minRadius=1, maxRadius=100) """ img = np.ones((200,250,3), dtype=np.uint8) for i in range(50, 80, 1): for j in range(40, 70, 1): img[i][j]*=200 cv2.circle(img, (120,120),

64-bit windows VMware detection

故事扮演 提交于 2019-12-03 03:06:53
I am trying to develop an application which detects if program is running inside a virtual machine. For 32-bit Windows, there are already methods explained in the following link: http://www.codeproject.com/Articles/9823/Detect-if-your-program-is-running-inside-a-Virtual I am trying to adapt the code regarding Virtual PC and VMware detection in an 64-bit Windows operating system. For VMware, the code can detect successfully in an Windows XP 64-bit OS. But the program crashes when I run it in a native system (Windows 7 64-bit OS). I put the code in an .asm file and define custom build step with

How to detect a cracked iPhone App and a jailbroken device (different methods)

流过昼夜 提交于 2019-12-03 02:51:43
问题 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 service: checking plist size checking signer identity checking if binary is crypted (not sure if this is working correctly since no cracked app got detected this way) checking modified date of info.plist against modified date of package (not sure if this is working - used code like: http:/

Apache proxy load balancing backend server failure detection

江枫思渺然 提交于 2019-12-03 00:41:20
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 we have multiple backend web servers, and in those cases, we do something like: <Proxy balancer://www.example.com> BalancerMember http://192.168.1.40:80 BalancerMember http://192.168.1.41:80 </Proxy> <VirtualHost *:80> ServerName www.example.com:80 CustomLog /var/log/apache2/www.example.com.log combined <Location /> Order allow,deny Allow from all ProxyPass balancer://www.example.com/

Shape detection in image using Matlab

穿精又带淫゛_ 提交于 2019-12-02 23:26:13
问题 I have an image with many shapes and I need to write some Matlab code which remove all the shapes except the rectangle.. Does it availabe to do it using only with strel,imclose and bwareaopen? if you think yes i will be very happy to hear your opinion. Image: 回答1: If I understood right from your comment, rectangle may have any size. I think this can be asked only if the other shapes have fixed size since you are asked to use strel, imclose and bwareaopen. To briefly explain, strel function