image-recognition

Implementing 8-Connectivity Connected-Component Labeling in Python

筅森魡賤 提交于 2019-12-04 08:13:21
问题 Just for educational purposes, I'm working on making a letter-and-symbol recognition program in Python, and I've run into some trouble with region separation. I made a working connected-component labeling function using the information here: CCL - Wikipedia But I need one with the accuracy of an 8-connectivity, which it mentions but doesn't provide info for. It has a diagram on the right side that shows that to check for it, the Northwest and Northeast pixels need to be included, but I have

C++ Library for image recognition: images containing words to string

南楼画角 提交于 2019-12-04 05:58:54
Does anyone know of a c++ library for taking an image and performing image recognition on it such that it can find letters based on a given font and/or font height? Even one that doesn't let you select a font would be nice (eg: readLetters(Image image). I've been looking into this a lot lately. Your best is simply Tesseract. If you need layout analysis on top of the OCR than go with Ocropus (which in turn uses Tesseract to do the OCR). Layout analysis refers to being able to detect position of text on the image and do things like line segmentation, block segmentation, etc. I've found some

Get time from the clock image in Matlab - Image Processing

心不动则不痛 提交于 2019-12-04 05:54:53
问题 clock http://img710.imageshack.us/img710/2623/circlock.jpg I do not know how to determine the top of the needle of the clock. If you determine the coordinates of them, I can think of the time of the clock. Please help me solve this problem. Thank you very much! 回答1: Test points in a circle of radius M, around the centre of the clock. (You could use a for loop to vary the angle from -pi to pi.) First set M so that the long hand will touch the circle but not the short hand. You will find a

How do I find the connected components in a binary image?

好久不见. 提交于 2019-12-04 05:41:01
I am looking for an algorithm to find all connected components in my binary image. If we think of the image like a matrix, it looks like: [ 0 0 0 0 ... 0 0 0 0 ... 0 1 1 1 ... 0 1 0 1 ... 0 1 0 0 ... ... ] I would like to find the all the ones that are touching (diagonally, as well). In this example, there is only one component - but there may be hundreds of unique components in an image. Image => ALGORITHM => [ [(x,y)], ... ] # list of lists of coordinates (each shape is a list) I have looked at the two pass labelling algorithm on Wikipedia, but I don't believe it returns me the actual

Darknet YOLO image size

自闭症网瘾萝莉.ら 提交于 2019-12-04 04:46:53
I am trying to train custom object classifier in Darknet YOLO v2 https://pjreddie.com/darknet/yolo/ I gathered a dataset for images most of them are 6000 x 4000 px and some lower resolutions as well. Do I need to resize the images before training to be squared ? I found that the config uses: [net] batch=64 subdivisions=8 height=416 width=416 channels=3 momentum=0.9 decay=0.0005 angle=0 saturation = 1.5 exposure = 1.5 hue=.1 thats why I was wondering how to use it for different sizes of data sets. You don't have to resize it, because Darknet will do it instead of you! It means you really don't

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

♀尐吖头ヾ 提交于 2019-12-03 22:44:43
问题 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

opencv matching edge images

 ̄綄美尐妖づ 提交于 2019-12-03 21:09:55
I am working on the project and part of it is to recognize objects recorded on camera. So to be more specofic: I am using OpenCV I have correctly setup camera and am able to retrieve pictures from it I have compiled and experimented with number of demos from OpenCV I need a scale- AND rotation- invariant algorithm for detection Pictures of original objects are ONLY available as edge-images All feature detection/extraction/matching algorithms I have seen so far are working reasonably well with gray-scale images (like photos), however due to my project specs I need to work with edge images

Where can I find a Free Chinese Handwritten Recognition engine for Android/IPhone?

ε祈祈猫儿з 提交于 2019-12-03 19:43:18
I am interested in developing something that will make use of Chinese handwritten recognition software on smart phones. Before I get started I wanted to check to see if there was any free (for open source and commercial applications) tools already developed for use. I've tried searching myself but I couldn't find any that stood out specifically for use on IPhone or Android. Are there any free to use (for commercial purposes included) engines/frameworks for Chinese Handwritten Recognition? If so, where can I find them? Thanks for your help. https://www.google.com/#hl=en&sa=X&ei=elAKT5DQKMP

image to barcode recognition [closed]

…衆ロ難τιáo~ 提交于 2019-12-03 16:50:36
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I know this has been discussed a few times on stackoverflow but I wasn't able to find a sufficient answer. For a project, I am seeking the best possible piece of software/api/library that can recognise barcode numbers from the input image. It will be used on mobile phones(iphone, windows mobile, android etc.) so it should be good at catching barcodes from bad angles, blurry images and such bad

How can I detect basic 2D geometric shapes (e.g. square, triangle, circle) on a JPEG image?

不羁岁月 提交于 2019-12-03 12:32:21
问题 After taking a picture, I'm trying to detect the shape of the object that is shot. What I'm looking for is similar to face detection, except I want the app to detect shapes instead of faces. I'm creating an Android app using Java and the android SDK. Any Ideas on what libraries or resources I can access to do this sort of thing? 回答1: I'd use the edge detection filter in marvin processing. http://marvinproject.sourceforge.net/en/plugins/edgeDetector.html Then go through the pixels, seach for