Jump to content

getBufferedImage()


Psvxe

Recommended Posts

Well basically I need to store data of interfaces.

 

The problem is that it's too slow and the interface is gone by the time it actually 'shoots' the image. Which leaves me with a screenshot of nothing useful. 

 

ImageIO.write(ctx.getColorPicker().getBufferedImage(), "JPG", new File(System.getProperty("user.home") + "\\OSBot\\Data\\screenshots\\" + i.getId() + ".jpg"))){

 

 

So next thing what came up in my mind was to get the widgets of the interface, which was pretty useless since the parts I'd need from the interface couldn't be stored.

 

And yes, I know the code only works for windows.

Link to comment
Share on other sites

Clue map data

 

i was thinking if I could find specific patterns in the map I could figure out which map is the right one with corresponding id. However, that is not needed at all if I could screenshot the map.

 

But... you basically have full control over the visibility of that interface, just don't close it until your screenshot is ready :p

Link to comment
Share on other sites

return if dir contains screenshot file.

Well, I'm writing up a cluesolver. However, I don't have the right tiles for every clue id. This is way I need to gather the id's and figure out the 'clue'.

 

Your dir checking might be the issue.

I know why you want to analyze the image, but why do you need to write it to disk for that?

Link to comment
Share on other sites

My question isn't "why are you analyzing the image?" but rather: "why are you writing the image to the disk (ImageIO.write) to analyze it?".

Well, so I could automatic gather information overnight and analyze by the next day.

Is the question now answered? Don't really get it. Is there a different or better way to do it? O.o

Link to comment
Share on other sites

Well, so I could automatic gather information overnight and analyze by the next day.

Is the question now answered? Don't really get it. Is there a different or better way to do it? O.o

 

Image comparison algorithms rarely if ever require you to store the image on disk :p

 

You do realize that there are more than 450 different clues right? Most of them visually very similar too. Even if you are just doing one tier, say easy clues, then you better come up with a really efficient algorithm :p

 

If you are just capturing images to be able to statically link a scroll ID to a specific clue, I really wouldn't recommend doing that, Jagex could break your script in less than 10 seconds (this actually happened last year-ish).

 

Image comparison for maps + OCR for text-based clues = thumbs up.

Link to comment
Share on other sites

Image comparison algorithms rarely if ever require you to store the image on disk tongue.png

 

You do realize that there are more than 450 different clues right? Most of them visually very similar too. Even if you are just doing one tier, say easy clues, then you better come up with a really efficient algorithm tongue.png

 

If you are just capturing images to be able to statically link a scroll ID to a specific clue, I really wouldn't recommend doing that, Jagex could break your script in less than 10 seconds (this actually happened last year-ish).

 

Image comparison for maps + OCR for text-based clues = thumbs up.

Well, I was thinking of grabbing the text messages from a clue and have them compared with the widget text of clue. Then I could search up the right id and have them linked. You get me? haha

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...