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

Comments [hide]

ID Author/Program Comment Date
9 stefan Fixed for #107 - unset input variable so as to not confuse inner script (if it is confusable by such things!) Without "input", the situation is realistic as in equal to that of the JPEG rendering process. 2014-01-11 12:56:22

add comment

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: 1379 / 384
Referenced in: [show references]