These are chat archives for marshallr3/Crop-Disease-Diagnosis

29th
Jul 2016
Marshall Richards
@marshallr3
Jul 29 2016 00:00
So all I need to do is find out how to execute a python script through php and how to use the php variable of the image as an argument for the python script to take ie what image to look at and then the python script takes care of the rest or in theory it should
starly
@starly
Jul 29 2016 00:01
The link has a section about initiating process when image object is uploaded in Web for
*for
*firm
*for
Pardon the typos..auto correct on mobile
Meant to type for
For
Marshall Richards
@marshallr3
Jul 29 2016 00:02
yea its okay. The form is already made and accepts jpegs
starly
@starly
Jul 29 2016 00:02
form
Marshall Richards
@marshallr3
Jul 29 2016 00:02
click browse and it will have you take a picture/retrieve one to be uploaded
starly
@starly
Jul 29 2016 00:02
OK wow it took a while for the mobile to type that
Marshall Richards
@marshallr3
Jul 29 2016 00:03
yea haha
starly
@starly
Jul 29 2016 00:03
Right but the part that was of note that we require an action to happen once an image is submitted
Marshall Richards
@marshallr3
Jul 29 2016 00:05
Yea and I think if I tweak the php it will work; there is supposed to be away to execute python through php and I think John showed me I'll just have to test it
starly
@starly
Jul 29 2016 00:05
In this section about object options

Dreamweaver Help /

Create web forms

Adobe Community Help

Applies toDreamweaver CC

Contact support

Was this helpful?

Yes No

About web formsForm objectsCreate an HTML formAbout dynamic form objectsInsert or change a dynamic HTML form menuMake existing HTML form menus dynamicDisplay dynamic content in HTML text fieldsShow All

Note:

Support for HTML form elements has been enhanced in Dreamweaver Creative Cloud updates. For information, see Enhanced HTML5 support for form elements.

To the top

About web forms

When a visitor enters information into a web form displayed in a web browser and clicks the submit button, the information is sent to a server where a server-side script or application processes it. The server responds by sending the processed information back to the user (or client), or by performing some other action based on the form’s contents.

You can create forms that submit data to most application servers, including PHP, ASP, and ColdFusion. If you use ColdFusion, you can also add ColdFusion-specific form controls to your forms.

Note:

You can also send form data directly to an e‑mail recipient.

To the top

Form objects

In Dreamweaver, form input types are called form objects. Form objects are the mechanisms that allow users to input data. You can add the following form objects to a form:

Text fields

Accept any type of alphanumeric text entry. The text can be displayed as a single line, multiple lines, and as a password field where entered text is replaced by asterisks or bullets to hide the text from onlookers.

Note:

Passwords and other information sent to a server using a password field are not encrypted. The transferred data can be intercepted and read as alphanumeric text. For this reason, you should always provide encryption for data you want to keep secure.

Hidden fields

Store information entered by a user, such as a name, e‑mail address, or viewing preference, and then use that data when the user next visits the site.

Buttons

Perform actions when clicked. You can add a custom name or label for a button, or use one of the predefined “Submit” or “Reset” labels. Use a button to submit form data to the server or to reset the form. You can also assign other processing tasks that you define in a script. For example, the button might calculate the total cost of items selected based on assigned values.

Check boxes

Allow multiple responses within a single group of options. A user can select as many options as apply. The following example shows three check box items selected: Surfing, Mountain Biking, and Rafting.

Radio buttons

Represent exclusive choices. Selecting a button within a radio button group deselects all others in the group (a group consists of two or more buttons that share the same name). In the example below, Rafting is the currently selected option. If the user clicks Surfing, the Rafting button is automatically cleared.

List menus

Display option values within a scrolling list that allows users to select multiple options. The List option displays the option values in a menu that allows users to select only a single item. Use menus when you have a limited amount of space, but must display many items, or to control the values returned to the server. Unlike text fields where users can type anything they want, including invalid data, you set the exact values returned by a menu.

Note:

A pop‑up menu on an HTML form is not the same as a graphical pop‑up menu. For information on creating, editing, and showing and hiding a graphical pop-up menu, see the link at the end of this section.

Jump menus

Navigational lists or pop‑up menus that let you insert a menu in which each option links to a document or file.

File fields

Let users browse to a file on their computer and upload the file as form data.

Image fields

Let you insert an image in a form. Use image fields to make graphical buttons such as Submit or Reset buttons. Using an image to perform tasks other than submitting data requires attaching a behavior to the form object.

To the top

Create an HTML form

(Creat

Marshall Richards
@marshallr3
Jul 29 2016 00:06
Yea we have the php we just need to append a python execution to it and tell the python script where to find the image
We need more data for the tensorflow and we might look at other image processors for prediction that are more powerful
starly
@starly
Jul 29 2016 00:11
OK
One second , moving to another location...the paste earlier incorporated more than I meant to paste into chat
Btw, with the current setup does that mean we do not need flask?
Marshall Richards
@marshallr3
Jul 29 2016 00:15
The current setup is super basic and will need to be changed. It's basically one php script that will run the python script and make sure its a jpeg, then jquery file uploader does the uploading I am pretty sure I mostly just copied and pasted that part of it. And then the python script which tells us what it is will open the page related to what the diagnoses is.
Eventually I would like to move to a more stable platform
That's the next thing we should look into after I make this demo possible
starly
@starly
Jul 29 2016 00:21
By the way is John online? The mobile version doesn't show the ppl online
Marshall Richards
@marshallr3
Jul 29 2016 00:21
I don't believe he is
starly
@starly
Jul 29 2016 00:34
Ok, I'm still on my way home...when I arrive do you want me to look into the part you mentioned about connecting php to python?
Marshall Richards
@marshallr3
Jul 29 2016 00:36
Sure yea I need to know how to execute a python script in php and how to use a php variable as its argument or how to change the name of an image in php
starly
@starly
Jul 29 2016 00:53
Ok..just arrived..will do some reading and get back to you via email
Marshall Richards
@marshallr3
Jul 29 2016 00:53
Alright thanks