image-recognition

Image downscaling algorithm

梦想的初衷 提交于 2019-11-30 04:13:35
问题 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;

how to detect shapes in an image?

允我心安 提交于 2019-11-30 03:41:22
问题 I want to detect a circle, rectangle shaped object in an image and read the information from that object. Is there any api in java which will be helpful to me? Ex: Detect a round shaped coin in a white background and obtain information about that that coin like ( value of a coin, etc.) Thanks. 回答1: Here's an answer to a similar question for C++. For Java, you can use the OpenCV wrappers. However, once you understand the essence of the approach you should be able to solve your problem using

OpenCV haar training for static image

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 02:26:21
I trying to train haar cascade classificator for card suite detection (which no rotation and has no distortion on image) For example I have file Clubs.png which contents clubs image on white background 20x20 pixels This tutorial is so tangled http://note.sonots.com/SciSoftware/haartraining.html My image varies only in sizes, no distortion or angling. Which commands I must enter in aim to get Clubs.xml file? George Profenza As @Neon22 mentioned, great tutorial. From my experience, it's quite a lengthy process(collecting positive and negative samples, training, generating haar cascade), but then

Recognize numbers in images

跟風遠走 提交于 2019-11-29 23:10:54
I've been searching for resources for number recognition in images on the web. I found many links providing lots of resources on that topic. But unfortunately it's more confusing than helping, I don't know where to start. I've got an image with 5 numbers in it, non-disturbed (no captcha or something like this). The numbers are black on a white background, written in a standard font. My first step was to separate the numbers. The algorithm I currently use is quite simple, it just checks if a column is entirely white and thus a space. Then it trims each character, so that there is no white

Recognizing distortions in a regular grid

拈花ヽ惹草 提交于 2019-11-29 22:26:11
To give you some background as to what I'm doing: I'm trying to quantitatively record variations in flow of a compressible fluid via image analysis. One way to do this is to exploit the fact that the index of refraction of the fluid is directly related to its density. If you set up some kind of image behind the flow, the distortion in the image due to refractive index changes throughout the fluid field leads you to a density gradient, which helps to characterize the flow pattern. I have a set of routines that do this successfully with a regular 2D pattern of dots. The dot pattern is slightly

Fast Java library for circle recognition [closed]

左心房为你撑大大i 提交于 2019-11-29 12:04:21
I'm looking for a Java library for circle recognition in a supplied bitmap. My Java knowledge is too basic to implement eg. Hough transform efficiently (Java newbie). Thanks! You might want to have a look at the implementation in ImageJ, see here . Sorry for posting this answer many years after the fact, but that question was asked again in 2012 and then closed for being a duplicate. As I said in my answer to that duplicate, I think the answer given here is overkill for such a simple problem, so is my simpler solution: Find all connected green blobs. This is not completely trivial, but not

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

二次信任 提交于 2019-11-29 10:29:04
问题 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

OpenCV haar training for static image

落爺英雄遲暮 提交于 2019-11-28 23:23:17
问题 I trying to train haar cascade classificator for card suite detection (which no rotation and has no distortion on image) For example I have file Clubs.png which contents clubs image on white background 20x20 pixels This tutorial is so tangled http://note.sonots.com/SciSoftware/haartraining.html My image varies only in sizes, no distortion or angling. Which commands I must enter in aim to get Clubs.xml file? 回答1: As @Neon22 mentioned, great tutorial. From my experience, it's quite a lengthy

2D Shape recognition algorithm - looking for guidance [closed]

旧时模样 提交于 2019-11-28 20:41:44
I need the ability to verify that a user has drawn a shape correctly, starting with simple shapes like circle, triangle and more advanced shapes like the letter A. I need to be able to calculate correctness in real time, for example if the user is supposed to draw a circle but is drawing a rectangle, my hope is to be able to detect that while the drawing takes place. There are a few different approaches to shape recognition, unfortunately I don't have the experience or time to try them all and see what works. Which approach would you recommend for this specific task? Your help is appreciated.

Recognizing distortions in a regular grid

佐手、 提交于 2019-11-28 19:04:32
问题 To give you some background as to what I'm doing: I'm trying to quantitatively record variations in flow of a compressible fluid via image analysis. One way to do this is to exploit the fact that the index of refraction of the fluid is directly related to its density. If you set up some kind of image behind the flow, the distortion in the image due to refractive index changes throughout the fluid field leads you to a density gradient, which helps to characterize the flow pattern. I have a set