Image processing i.e. matching similar images in java [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Is there a way where i can match some sort of screenshots with earlier stored images in my system.
Consider 2 images i want to compare A and B.
A is full screenshot of monitor whereas B corresponds to a particular window say a small image.
My problem is to find whether A contains B or not?

There doesn't seem to be a whole lot out there in terms of Java stuff that does image matching. I've found (maybe) a starting point for you, but be aware that this is a really complex topic. Related StackOverflow topic here.

For image processing I suggest using OpenCV library to get started. It has feature detectors which you can use to detect and find similar objects within an image like this. There are quite a few examples online you can use to perform the function you need. It is a pretty big topic so I can't share a lot, but I hope this can give you a head start :)
Image Similarity Java
Feature Matching Java (Stackoverflow answer)

Related

2D Real time graphics in Java (IntelliJ) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 months ago.
Improve this question
I'm developing a program that need to display 3 real time graphs, currently I'm working on IntelliJ but if needed I'll move to another IDE like NetBeans, I've been searching some options but I have no clear idea of the direction what would be the best for this kind of aplications.
This will be running on a windows bases enviroment
My observed options are trying JFreeChart but seems to be not so good for the real time nature, I haven't been able to find much documentation of JavaFX with this kind of application and idk how the java.awt.Graphics would work
If you are interested in real-time charting then you should have a look at this library: https://github.com/fair-acc/chart-fx
But doing real-time charts is more than just drawing something. It also involves data acquisition, data reduction, etc. You should do some research first in order to find the best solution for your specific problem.

How to read huge file and write on a file in java using Horizontal or Vertical Scaling [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Recently i was asked in an interview , how to read huge file (single file of 1TB) in java.I said by using Threading , we will create two File objects and one thread will read it from the beginning and other Thread will read from last. May be this is Stupid answer.And the Interviewer gave hint , by using Horizontal/Vertical Scaling , Clustering.
I have seen in Google there is no Example for Horizontal/Vertical Scaling , Clustering and reading files.can anyone help
This interview question is quite open; it tries to have you talk and think out loud. There will be many answers.
My personal interpretation:
Both scaling do not refer to classes or frameworks. They are concepts in architectures. Start with wikipedia if you are not clear on that.
Vertical scaling: here they probably want you to see how you can improve performance on a single host to get this huge file job done. This involves better disks, raid, multithreading of course. If any CPU/memory is heavily loaded, perhaps having more cpu and memory.
Horizontal scaling: this is usually about how to divide the problem across multiple jvm hosts to have the file processed concurrently, in a divide and conquer, scatter/gather pattern.

is it posible to compare image at realtime using camera with stored images in db, android java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am doing image processing, but stuck in. can we implement realtime image processing, like the camera captures videos and also compares the object with stored images in data base, need algorithm for implementing this idea, any tutorial, link or source will be appreciated.
I would recomend using OpenCv for android. It allows a simple and very well working live processing. This library also comes with a wide variety of imageprocessing implementations. It is easy to convert the image-Object (Mat) to Bitmaps and so Files! OpenCv allows LowLevelImageProcessing which could be usefull to you to compere these images. It maybe seems a bit difficult to add this library to your project at first but, it is worth it!

How to dynamically generate code for object oriented tool? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am kind of stuck in a dilemma. I want to create a tool that would generate code on the fly by taking various parameters from the user. The codes have a few similar features and few things need to be altered from one code to other to other. Based on the parameters, I can have 15 different codes. Till now I have been using file handling in Java to implement this as I have the created codes in different files but this doesn't seem to be a great method. Can you please suggest something that is better than this??
Since Java 1.6 you can compile in memory whatever you want. Take a look at this code:
http://code.google.com/p/cachos/source/browse/trunk/cachos/src/com/peyrona/cachos/InMemoryCompiler.java
http://code.google.com/p/cachos/source/browse/trunk/cachos/src/com/peyrona/cachos/InMemoryExecutor.java
In this example you can see how you can compile a source code stored in a String in memory, without using the disk.
Source (Spanish): http://www.javahispano.org/portada/2011/12/12/compilar-y-ejecutar-codigo-java-en-memoria.html
I think this is what you're looking for.

Analyzing Music in Java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Greetings!
I was wondering if it's possible to make music-based games in Java? I've played games like Beat Hazzard and Audiosurf and stuff like that and I was considering making one like that - that dynamically loads songs the user selects and finds pieces of information (like bass notes) and does something in return.
I don't even know where to start, but I have found ways to play music (through certain classes others provide or the Java Sound API). Anybody ever done anything like this before? Any help is appreciated.
Of course it is. I think the term you should be Googling for is Java Signal Processing and analysis.
There is a related SO post on this as well as numerous other Java libraries and source examples (see the Google search results from above.) Here is a page with applets that perform a variety of signal analysis. Might not be exactly what you need but should be a start. And MARF, from the SO post mentioned above, looks VERY promising!

Categories