Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #103 // Get width and height from image (or GUI)

Lua code

get("#108")
env = newCleanEnv()
local _input = input
input = nil
--might use pcall... but might as well not.
loadSnippet(_input, env)()
return "w/h: "..tostring(env.width).."/"..tostring(env.height)

test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

1 comment(s) hidden. show

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 204 [visualize]

Snippet ID: #103
Snippet name: Get width and height from image (or GUI)
Eternal ID of this version: #103/1
Text MD5: 7ab0cb06e523bb13d67a57735c0ae0bb
Author: stefan
Category: Internal TinyBrain Helpers
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-01-16 00:01:08
Source code size: 204 bytes / 7 lines
Pitched / IR pitched: Yes / Yes
Views / Downloads: 1380 / 384
Referenced in: [show references]