4 ms·
Fill in anyone you want: https://www.wolframcloud.com/objects/032f062e-5a63-4e3a-aff4-019383ee940d https://www.wolframcloud.com/objects/032f062e-5a63-4e3a-aff4
by taliesinb 13y ago
Fill in anyone you want:
https://www.wolframcloud.com/objects/032f062e-5a63-4e3a-aff4-019383ee940d https://www.wolframcloud.com/objects/032f062e-5a63-4e3a-aff4...
Corresponding code:
DogVision[img : (_Image | _Graphics | _Graphics3D)] :=
Module[{rgbimg = ColorConvert[img, "RGB"], data},
data = Transpose[ImageData[rgbimg], {3, 2, 1}];
GaussianFilter[
Image[Transpose[{(data[[1]] + data[[2]])/
2, (data[[1]] + data[[2]])/2, data[[3]]}, {3, 2, 1}]], 5]];
CloudDeploy[
FormFunction[{"person" -> "Person"},
DogVision[EntityValue[#person, "Image"]] &, "JPEG"],
Permissions -> "Public"]
- hamburglar 13y agoEvery time I play around with Wolfram Alpha, I get frustrated trying to figure out how I get past the natural language input interpretation and write code like you specify here. Is this a restricted feature for pro subscribers? Why do they bother letting me see the "input interpretation" (and provide it as copyable plaintext) if they're not going to let me actually use it?
- taliesinb 13y agoIt sounds like you want to use the Wolfram Language rather than Wolfram Alpha.
- hamburglar 13y agoI believe what I want is the ability to use Wolfram Alpha by writing my queries in the Wolfram Language. How does one do that?
- hnriot 13y agoThat's exactly what the Wolfram language does. You cloud deploy your code to use it from the web if you want it to be a service, like REST
- hamburglar 13y agoLet me be super explicit. Given: I have a piece of Wolfram Language code. Where do I enter it to get it evaluated? Assume I know nothing. I can't tell if the answer is: A) there's a text box on the web site you are apparently overlooking you moron, B) you buy/download the software, save your code in a text file, and run it using software on your local machine, C) you sign up for Wolfram Alpha Pro Deluxe which then makes the query input box on the Wolfram Alpha page start accepting Wolfram Language, or D) none of the above: [fill in the blank]
- iLoch 13y agoI don't know much about this, but I've seen a talk with Stephen Wolfram before they released this - I think, based on how he described it, that D is the correct answer. I believe it's more similar to writing an application than just entering a query like you would on their homepage. So I guess in a sense C is correct, but I don't think that's quite how it works.
- ics 13y agoThe answer you're looking for and that everyone is avoiding is Mathematica. I mean, they're working on (or have possibly released by now) other platforms where the so-called Wolfram Language can be used, but the simple answer to "where can I write this natural language stuff or Wolfram Language code" is the application Mathematica.
- hamburglar 13y agoIf I have Mathematica, does that allow me to execute code against the giant corpus of Wolfram Alpha knowledge? That is, will I be able to evaluate 'EdgeDetect[The Edge | image]' and have it use a picture of The Edge as input? Will I be able to just reach out into the cloud and use a weather dataset as input? I was under the impression that the answer is no. They have a real communication problem, because I inevitably find myself trying to cobble together a notion of what their products actually are. Here's my best guess, rather hard-earned by going in frustrating circles in what passes for documentation on their site: 1) Mathematica is the engine which runs Wolfram Language code. 2) Wolfram Alpha is a combination of (a) Mathematica, (b) a huge knowledge base, and (c) a natural language processor which turns user-provided queries into Wolfram Language expressions. These three things are bundled up with a web front-end and allow you to do really cool stuff. 3) It is not currently possible for me to write my own Wolfram Language expressions to run against the giant knowledge base.
- vacri 13y agoAlmost anyone. I can't find the terms to get it to show me how a dog sees a postal carrier. Various terms either failed, or applied the vision to a film poster instead.
- carlob 13y agoPostal worker is probably not an entity of type Person, I would say it's more of a profession.