detection

Similar code detector

泪湿孤枕 提交于 2019-12-02 20:44:44
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 them. My requirements are: reasonably small amount of false positives good detection rate (yeah these are going against each other) ideally with a more complex output than just a single value usable for C (C99) and C++ (C++03 and optimally C++11) still maintained usable for comparing two source files against each other usable in non-interactive mode EDIT: To avoid confusion, the following two code

ANDROID - color detection using openCV - how to?

南楼画角 提交于 2019-12-02 17:21:09
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.inRange(mRgba, new Scalar(20, 100, 100), new Scalar(30, 255, 255), mRgba); Bitmap bmp = Bitmap

Mobile detection for specific parts of websites

和自甴很熟 提交于 2019-12-02 17:06:56
问题 I am beginner in web development and I'm having trouble wrapping my head around this problem. I have taken a video and encoded it into an mp4 file and an ism file. I have two different video tags- one that will play each file. For the website I'm working on I would like it to use one of the video tags if the website is being viewed on a mobile device, and the other if it is not. Right now the website is in HTML5. Thank you for any help you can give! 回答1: The video tag already supports

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

大兔子大兔子 提交于 2019-12-02 16:25:28
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://snippie.net/snip/f7530ff2 to do that) I also wonder if it is possible to check if the device is jailbroken?

Improve cvFindChessboardCorners

时光怂恿深爱的人放手 提交于 2019-12-02 14:46:25
问题 Unfortunately, I was not able to find any solution to my question. What I'm trying to do is to improve the results using the OpenCV-method cvFindChessboardCorners in order to be able to achieve a better camera calibration, because I think that this is the reason why I get poor results undistorting/rectifying images like in my question before (Question: Undistorting/rectify images with OpenCV). So, what I want to know is, how I can improve the algorithm in order to be able to detect the

Shape detection in image using Matlab

依然范特西╮ 提交于 2019-12-02 14:41:19
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: 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 creates a structuring element with given size for rectangle, disk or any other shape on the picture you added.

How can I correctly classify the number of positive (bright color) circles and negative (dark color) circles in the image

拥有回忆 提交于 2019-12-02 10:20:40
Long post - please bear with me. For a better understanding of what the goal is and what I have done so far, I have posted the code. Please let me know if any further information is required. I have an image (as shown) and the goal is to correctly classify the number of positive (blue) and negative (purple) circles . I do not care about the semi-circles in the image . As shown in the image, there are 29 circles (excluding the semi circles) in which there 7 positive ones. But my code detects only 1 positive. Here is what I have done so far: import cv2 import numpy as np from matplotlib import

Mobile detection for specific parts of websites

夙愿已清 提交于 2019-12-02 08:56:08
I am beginner in web development and I'm having trouble wrapping my head around this problem. I have taken a video and encoded it into an mp4 file and an ism file. I have two different video tags- one that will play each file. For the website I'm working on I would like it to use one of the video tags if the website is being viewed on a mobile device, and the other if it is not. Right now the website is in HTML5. Thank you for any help you can give! The video tag already supports alternate sources. The article here describes how to include multiple sources for a video (because some browsers

Improve cvFindChessboardCorners

廉价感情. 提交于 2019-12-02 07:46:55
Unfortunately, I was not able to find any solution to my question. What I'm trying to do is to improve the results using the OpenCV-method cvFindChessboardCorners in order to be able to achieve a better camera calibration, because I think that this is the reason why I get poor results undistorting/rectifying images like in my question before ( Question: Undistorting/rectify images with OpenCV ). So, what I want to know is, how I can improve the algorithm in order to be able to detect the chessboard corners in all images of this link: http://abload.de/img/cvfindchessboardcorneoxs73.jpg

Vanilla JS Div Collision Detection

折月煮酒 提交于 2019-12-02 05:13:52
My implementation of the following can be found on jsfiddle.net I have four divs. My goal is to make them draggable around the page but NOT to allow them to overlap one another. Each can be dragged around the page with a mousemove listener. container.addEventListener('mousemove',mouseMove); function mouseMove(e) { if (!mouseDown) {return;} let coords=e.target.getBoundingClientRect(); let movX=e.movementX; let movY=e.movementY; if (!collision(movX,movY,e.target.classList[1],coords)){ e.target.style.left=`${coords.left+movX}px`; e.target.style.top=`${coords.top+movY}px`; } } My collision