B4J Question Need Advice

tufanv

Expert
Licensed User
Longtime User
Hello,

I never used b4j to create ui software. I want to achieve stg like this , is it possible please advice ..

The software will take screenshot every 5 seconds (not the screenshot of my own software ), stg like an OCR will read the contents of the screenshot and save the data to a file. Is this possible ?

Thanks
 

inakigarm

Well-Known Member
Licensed User
Longtime User
Hello,

I want to achieve stg like this , is it possible please advice ..

Sorry, don't understand the question...

B4J is very powerfull, easilly you can code to take a snapshot of a node every 5 seconds (with a timer) and display in a http connection (http server)
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Sorry, don't understand the question...

B4J is very powerfull, easilly you can code to take a snapshot of a node every 5 seconds (with a timer) and display in a http connection (http server)
I dont want to display in a http connection. Lets say there is a website that lists bike prices. The website is open in a browser. App captures the computers screen , read bike prices from the image with a ocr and save it to a file.
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
- Load the webpage ---> yes
- Capturing the screen -->yes
- OCR ---> https://www.b4x.com/android/forum/threads/ocr-with-b4j.64785/#content / OCR Online with Rest APIs (ex: https://ocr.space/ocrapi)
- Save to a file --> yes

P.D: you can save the webpage contents and search for the prices as strings in the html code (no OCR needed)
Thanks for the answers =) html code is not readable much , thats why i need the screenshot. Last Question : Must i use node.screenshot or any other way ?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Thanks for the answers =) html code is not readable much , thats why i need the screenshot. Last Question : Must i use node.screenshot or any other way ?
By the way online api will probably have a limit so is there a local solution for the ocr without online apis ?
 
Upvote 0

inakigarm

Well-Known Member
Licensed User
Longtime User
The amount is not harcoded at html code so it's not possible to get this prices scrapping the web; saving to png and passing and online OCR works
Gold Price - Charts - Price of Gold - Silver Price
GOLD PRICE - WERE TEE WORLD CHECKS 71-E GOLD PRICE 1618 on goldprice.org now.
G+1 Recommend this
Holdings 13
LTV
1,228.95 a +10.45 +0.86% USD • I oz •
Gold •
amazon
VVifi Camara Deportiva Sumeraible hasta 30m.Tormo ****I-€59,99 ./premium
Gold Price Data
17.65 a +0.20 +1.13%
Silver • I USD • I oz •
Samsung LT32E310EW - Monitor TV LED 32" ****1 €228,89
goldprice.org gold prices are provided by several data feed providers, in the event that there is a failure in one data feed provider we switch to one of our other providers.
goldprice.org has a licence agreement with the COMEX to display gold price data on a real time basis to our visitors. Gold prices are sometimes referred to as world gold prices, New York gold prices spot gold prices gold market prices and gold bullion prices These prices are indications of the current trading prices for one troy ounce of gold on the various world exchanges.
The Drice used in the aold Drice charts on GOLDPRICE.ORG is the 24 hour Spot Gold Bid Price (New York.
I
39.51 a +0.34 +0.86%
Gold Price Change Performance USD Amount Today 10.68 0.88% 30 Days 46.60 3.98% 6 Months -117.90 -8.82% 1 Year 60.70 5.24% 5 Years -504.30 -29.27% 16 Years 953.05 359.03%
goldprice.org
IGold • I USD • % •

Maybe you can use Tesseract OCR (offline) with jShell library (http://stackoverflow.com/questions/26251599/can-i-test-tesseract-ocr-in-windows-command-line)
 
Upvote 0

Roycefer

Well-Known Member
Licensed User
Longtime User
The jAWTRobot library allows you to take screenshots of arbitrary rectangles on any of the system's screens even if your app has no UI or is not in focus or is minimized.
 
Upvote 0
Top