Ask Your Question

KansaiRobot's profile - activity

2017-11-09 08:40:19 -0500 received badge  Necromancer (source)
2017-11-09 08:40:19 -0500 received badge  Self-Learner (source)
2017-11-09 02:42:19 -0500 edited answer Pattern Matching (specific question)

More than 2 years after I asked the question, (I didn't know I was looking for something like this on that time) I imple

2017-11-06 01:28:00 -0500 edited answer Pattern Matching (specific question)

More than 2 years after I asked the question, (I didn't know I was looking for something like this on that time) I imple

2017-11-05 18:42:21 -0500 commented answer Pattern Matching (specific question)

Yes, sorry for my late reply. We had a long weekend here. I will do something like this in these days. Hope it can help.

2017-11-02 04:51:24 -0500 commented answer Pattern Matching (specific question)

I talked about Neural Networks because when the number of models increase, comparing to each of them takes more time, so

2017-11-02 04:50:14 -0500 commented answer Pattern Matching (specific question)

As far as I remember translations have no effect whatsoever once a figure is defined as Fourier descriptors. Meaning tha

2017-10-31 19:17:45 -0500 commented answer Pattern Matching (specific question)

The last part (comparison) could be replaced with Neural networks as well. But for few model patterns, comparison is eno

2017-10-31 19:16:13 -0500 commented answer Pattern Matching (specific question)

Wow, I didn't see your question in SO. That is exactly the problem I solved. To be completely sincere I was quite desper

2017-10-31 01:45:07 -0500 commented question Segmenting Tablets

Actually it was more. (I managed to delete some) Something in the post button made it call the post many many times... I

2017-10-31 01:42:17 -0500 commented question Segmenting Tablets

Actually it was more. (I managed to delete some) Something in the post button made it call the post many many times... I

2017-10-30 23:49:53 -0500 commented question Pattern Matching (specific question)

Now I have a new question, although related. Please check it

2017-10-30 23:49:04 -0500 commented question Pattern Matching (specific question)

Yes, I worked with halcon for a while. As you can see from my answer I solved this with pure C++ programming. But I don'

2017-10-30 23:08:45 -0500 answered a question Pattern Matching (specific question)

More than 2 years after I asked the question, (I didn't know I was looking for something like this on that time) I imple

2017-10-30 21:09:50 -0500 asked a question Segmenting tablets

Segmenting tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:09:50 -0500 asked a question Segmenting tablets

Segmenting tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:09:50 -0500 asked a question Segmenting tablets

Segmenting tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:09:49 -0500 asked a question Segmenting tablets

Segmenting tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:09:46 -0500 asked a question Segmenting tablets

Segmenting tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:18 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:18 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:17 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:17 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:16 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:16 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:16 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:08:00 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:07:34 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:07:33 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:07:33 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:07:33 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:07:32 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:07:24 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-10-30 21:07:14 -0500 asked a question Segmenting Tablets

Segmenting Tablets Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them

2017-08-09 04:58:21 -0500 received badge  Famous Question (source)
2017-03-02 07:56:12 -0500 marked best answer reading a sequence of files within a folder

Hello and thanks always.

This question has been asked several times on the internet it seems but none of the replies work so I come here dedicated only to opencv.

I want to open a series of images stored on a file (or what they call a "sequence of files")

I read in the opencv documentation (and also on several forums) to use video capture as:

Parameters:
filename – name of the opened video file (eg. video.avi) or image sequence (eg. img_%02d.jpg, which will read samples like img_00.jpg, img_01.jpg, img_02.jpg, ...)

This however doesnt work. My files don't get recognized.

Let me give you the format of the names of my files.

s640_016_1@5.jpg

so I tried "s640_%03d_%01d@%01d.jpg"

Do this "%0x" thing really work? Do I have to use escape characters? I have tried putting \ or like this

Or if not How can I read a sequence of files in a folder???

Thanks a thousand

2016-12-26 09:26:20 -0500 received badge  Nice Question (source)
2016-11-22 00:06:55 -0500 received badge  Notable Question (source)
2016-08-29 13:43:55 -0500 received badge  Famous Question (source)
2016-05-21 16:04:19 -0500 received badge  Popular Question (source)
2016-03-31 08:53:40 -0500 received badge  Notable Question (source)
2016-02-05 07:10:39 -0500 received badge  Popular Question (source)
2015-04-01 19:09:14 -0500 asked a question Classification

Hello and thank you always for your help. Depending on a decision from the upper guys at my job, there is the probability that I won't be dealing that much with OpenCV for a while (although I have set up almost everything at home so that I can keep learning on my free time- so maybe I ll post on weekends :) ) so I would like to thank you all for all the help and insights you have given me and the things you taught me so kindly.

I would like one more question though again rather general and theoretical:

Is there the possibility of using classification with OpenCV? Classification as in the Machine Learning technique that permits a machine to "classify" an input signal (in this case an Image) as being part of a set.

To give a more concrete example: Lets say I have a camera and I point it at a banana, then the system will say "banana". If I point it at a tomato it will say "tomato". If I point it to a lettuce it will say "lettuce".

Now of course, provided that previously I have trained the system with samples of photos of a banana, a tomato and a lettuce. Say I point it to an untrained things- an apple- it will say "tomato" ergo the category to which it will most likely fit.

Take into account that the system is learning these categories and I dont explicitely explain "what is a banana"

Are there examples of these things being done with OpenCV??

Any comment, pointers or advice will be greatly appreciated

2015-03-31 04:30:14 -0500 commented answer Pattern Matching (specific question)

Thank you for your answer. As a matter of fact, I am looking at how to implement pattern matching in OpenCV. I have used pattern matching with other computer vision tools and now I would like to use openCV to implement it. However when I look in books or homepages I can't find anything similar to what I used to do: -Defining a model, and applying that model on images to find matchings.

How to do this with OpenCV??

2015-03-31 02:46:18 -0500 commented question Pattern Matching (specific question)

Thank you for your comment. Is this method robust to rotation and scaling?

Right now I am reading about keypoints, SURF and SIFT. Can't say I see the light at the end of the tunnel yet...

2015-03-30 02:10:30 -0500 asked a question Pattern Matching (specific question)

Hello and thanks always for your help.

I have asked a rather general question regarding pattern matching. This time I would ask something more specific. Let's suppose I have a camera that points to an area where objects of several patterns are put. I want to find objects of a specific shape but with no regard for the size of these objects or their orientation.

To do this I build an "artificial image" (meaning not something out of a camera) and use it as "model". Take a look at the following:

A "bullet" shape model

This "bullet shape" is the shape of the object I want to find. You can see I build it artificially from a rectangle and a semicircle, and that it can have any orientation.

So what I want to do is to , once I have this "model" find objects in my camera image that resemble this model but vary in size and orientation.

Any idea on how to do this? Any pointers, advice or ideas would be greatly appreciated.

2015-03-29 20:10:54 -0500 answered a question OpenCV with Python on a mac

by seeing the port select, it is clear that python27 is not selected. So first do the following:

sudo port select --set python python27

Then open your .bash_profile with

open -t ~/.bash_profile

and add the following line:

export PYTHONPATH=<path where cv2.so is located>:$PYTHONPATH

This path can vary. in my case it was located in

/opt/local/Library/Frameworks/Python.framework/versions/2.7/lib/Python2.7/site-packages

Once you save the bash_profile close your terminal and open it again.

Then try python and the import cv2 line and voila!

2015-03-26 04:02:04 -0500 commented question Pattern Matching (general question)

Thank you for your comment. I have checked so far only matchTemplate and although it fits what I am looking for to some extent, I guess this is a brute force approach and sensible to scaling and rotation?? I am looking for some method that finds several ocurrences of a synthetic model which can be in different scales or rotated.... I guess I will keep looking :)