Instructions
These instructions only apply to web services 9.4 and earlier.
The changes described only affect the default image quality in “simple” mode and this process is not upgrade safe. You must perform this process again each time you upgrade Web Server.
<br>
- For Windows: Browse to C:\Program Files\exacqVision\WebService\bin\templates.
For Linux: Browse to /usr/local/exacq/webservice/bin/templates. - Open the file config.html.mako.
- Look for the following section:
query_string = urllib.urlencode([(“s”, hex(server.id)),
(“p”, camera.plugin),
(“d”, camera.device),
(“i”, camera.input),
(“w”, “320”),
(“h”, “240”),
(“q”, “7”)]) - Add a line to the end of that section as follows:
query_string = urllib.urlencode([(“s”, hex(server.id)),
(“p”, camera.plugin),
(“d”, camera.device),
(“i”, camera.input),
(“w”, “320”),
(“h”, “240”),
(“q”, “7”),
(“r”, “5”)]) - Change the values to match your preferred settings for the following parameters:
NOTE: Starting in Web Server 2.1, the following values are stored in a cookie generated from the Web Server. However, you can add these values to the config.html.mako file to override the cookie.
w = width
h = height
q = quality
r = refresh interval - Save the file.
- Open or refresh the Web Server page in your web browser.
<br>