image-recognition

Very simple image recognition on iOS [closed]

痴心易碎 提交于 2019-12-01 13:32:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Is it possible to do very basic image recognition to compare an image against a database of images and determine which image in the database is the best match? I don't need to do any processing of any of the images, but simply differentiate between a finite list of images. Are there any libraries that make this

How to calculate the amount of “green spots” in an image?

谁都会走 提交于 2019-12-01 12:03:32
问题 Hi I have a bunch of images. Let's assume all of them of the same size. The images have a black background and some quasi round green spots which represent fluorescence. I have to calculate the amount (in percentage) of fluorescence of each image. I.e. the area of green spots. Any idea how to do this, for example in Java? 回答1: A few thoughts: You could do an edge detection and then perform a hough circle transform. This should work well if you already know the radius of the circles. When

How to calculate the amount of “green spots” in an image?

纵然是瞬间 提交于 2019-12-01 11:54:38
Hi I have a bunch of images. Let's assume all of them of the same size. The images have a black background and some quasi round green spots which represent fluorescence. I have to calculate the amount (in percentage) of fluorescence of each image. I.e. the area of green spots. Any idea how to do this, for example in Java? A few thoughts: You could do an edge detection and then perform a hough circle transform . This should work well if you already know the radius of the circles. When comparing colors you could use a color space that is better suited for fuzzy comparison. For example the HSV

OpenCV MatchTemplate in C# is too slow compared to Python

眉间皱痕 提交于 2019-12-01 05:11:56
I've programmed a solution in Python which worked great, but required several libraries to install and a lot of burocratic setup to work. I've decided to build it with a GUI in C# on Visual Studio Community 2017 but in the first successful function the result was way slower than in Python. Which IMO it should actually be faster. The code essentially is just doing a needle in a haystack image search, by getting all images from a folder and testing each needle (total 60 images) in a haystack, in python I return the string, but in C# I'm only printing. My code in Python is the following: def

Using training made with python API as input to LabelImage module in java API?

北战南征 提交于 2019-12-01 01:11:36
I have a problem with java tensorflow API. I have run the training using the python tensorflow API, generating the files output_graph.pb and output_labels.txt. Now for some reason I want to use those files as input to the LabelImage module in java tensorflow API. I thought everything would have worked fine since that module wants exactly one .pb and one .txt. Nevertheless, when I run the module, I get this error: 2017-04-26 10:12:56.711402: W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn

Image downscaling algorithm

五迷三道 提交于 2019-11-30 20:32:58
Could you help me find the right algorithm for image resizing? I have an image of a number. The maximum size is 200x200, I need to get an image with size 15x15 or even less. The image is monochrome (black and white) and the result should be the same. That's the info about my task. I've already tried one algorithm, here it is // xscale, yscale - decrease/increase rate for (int f = 0; f<=49; f++) { for (int g = 0; g<=49; g++)//49+1 - final size { xpos = (int)f * xscale; ypos = (int)g * yscale; picture3[f][g]=picture4[xpos][ypos]; } } But it won't work with the decrease of an image, which is my

OpenCV with Laplacian formula to detect image is blur or not in iOS

被刻印的时光 ゝ 提交于 2019-11-30 14:09:12
问题 Thanks for help in advance. I have lots of R&D and search but I can't find any solution for detect blur image or not. I have used this https://github.com/BloodAxe/OpenCV-Tutorial and for blur detection used Laplacian formula but can't get blur detection in image -(void) checkForBurryImage:(UIImage *) image { cv::Mat matImage = [image toMat]; cv::Mat matImageGrey; cv::cvtColor(matImage, matImageGrey, CV_BGRA2GRAY); cv::Mat dst2 =[image toMat]; cv::Mat laplacianImage; dst2.convertTo

How to programmatically read over a scanned document or image

☆樱花仙子☆ 提交于 2019-11-30 12:17:50
问题 I've searched around on the net, as I'm a bit of a n00b when it comes to OCR, and I'm actually not sure where a good starting point would be. I'd like to build an app that will be able to identify & count say for example how many check boxes are filled in on any given row of document/image (it could even be another format should anyone know of something that would better suite an application of this type). the ultimate goal being to eliminate manual data capturing and speed up the process of

OpenCV with Laplacian formula to detect image is blur or not in iOS

对着背影说爱祢 提交于 2019-11-30 10:03:01
Thanks for help in advance. I have lots of R&D and search but I can't find any solution for detect blur image or not. I have used this https://github.com/BloodAxe/OpenCV-Tutorial and for blur detection used Laplacian formula but can't get blur detection in image -(void) checkForBurryImage:(UIImage *) image { cv::Mat matImage = [image toMat]; cv::Mat matImageGrey; cv::cvtColor(matImage, matImageGrey, CV_BGRA2GRAY); cv::Mat dst2 =[image toMat]; cv::Mat laplacianImage; dst2.convertTo(laplacianImage, CV_8UC1); cv::Laplacian(matImageGrey, laplacianImage, CV_8U); cv::Mat laplacianImage8bit;

Keypoint matching just works two times…? (java opencv)

隐身守侯 提交于 2019-11-30 07:46:30
I have a very strange problem. I'm using this code to detect an image in another one (java opencv): UPDATED CODE: public void startRecognition() { //load images, I want to find img_object in img_scene Mat img_scene = Highgui.imread("D:/opencvws/ImageRecognition/src/main/resources/ascene.jpg"); Mat img_object = Highgui.imread("D:/opencvws/ImageRecognition/src/main/resources/aobj1.jpg"); run++; System.out.println("RUN NO: " + run); //init detector FeatureDetector detector = FeatureDetector.create(FeatureDetector.SURF); //keypoint detection for both images (keyponts_scene for img_scene, keypoint