Skip to content

Commit

Permalink
Set capture resolution to 640x360 for maximum compatibility (#36)
Browse files Browse the repository at this point in the history
Some devices were not happy with 640x480, which has been solved with
640x360. This would make the application compatible with as many models
as possible. (And those who need to run higher resolutions and have
models capable of it can simply alter the code before building the
application.)

Signed-off-by: Joakim Roubert <joakimr@axis.com>
  • Loading branch information
joakimr-axis committed Dec 4, 2023
1 parent a489246 commit 6332cb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion html/js/opcuagaugereader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const w = 640;
const h = 480;
const h = 360;
const msize = 5;
const State = {
Begin: Symbol(0),
Expand Down
8 changes: 4 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
},
"vendorUrl": "https://www.axis.com/",
"runMode": "respawn",
"version": "1.1.7"
"version": "1.2.0"
},
"configuration": {
"settingPage": "settings.html",
"paramConfig": [
{"name": "clockwise", "type": "bool:0,1", "default": "1"},
{"name": "maxX", "type": "int:min=0,max=639", "default": "150"},
{"name": "maxY", "type": "int:min=0,max=479", "default": "150"},
{"name": "maxY", "type": "int:min=0,max=359", "default": "150"},
{"name": "centerX", "type": "int:min=0,max=639", "default": "100"},
{"name": "centerY", "type": "int:min=0,max=479", "default": "170"},
{"name": "centerY", "type": "int:min=0,max=359", "default": "170"},
{"name": "minX", "type": "int:min=0,max=639", "default": "50"},
{"name": "minY", "type": "int:min=0,max=479", "default": "150"},
{"name": "minY", "type": "int:min=0,max=359", "default": "150"},
{"name": "port", "type": "int:min=1,max=65535", "default": "4840"}
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/opcuagaugereader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static gboolean initimageanalysis(void)
{
// The desired width and height of the BGR frame
const unsigned int width = 640;
const unsigned int height = 480;
const unsigned int height = 360;

// chooseStreamResolution gets the least resource intensive stream
// that exceeds or equals the desired resolution specified above
Expand Down

0 comments on commit 6332cb3

Please sign in to comment.