Skip to content

Commit 52e38fd

Browse files
author
KJ Lawrence
committed
Update queue loop to run 30 times per second instead of 1000 times
1 parent a6506a8 commit 52e38fd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
node-openalpr
22
============
33

4-
This package binds OpenALPR with Node.js
4+
This package binds [OpenALPR](https://github.com/openalpr/openalpr) with Node.js
55

66
# Installation and Example
77

@@ -10,7 +10,7 @@ that's not possible we'll fallback to precompiled binaries.
1010

1111
### Linux
1212

13-
0. Install OpenALPR (https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(Ubuntu-Linux))
13+
0. Install [OpenALPR](https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(Ubuntu-Linux))
1414
0. Run ```npm install node-openalpr```
1515

1616
### Windows
@@ -43,7 +43,7 @@ for (var i = 0; i < 350; i++) {
4343

4444
This is a breakdown of all of the methods available for node-openalpr. Start needs to be called before any other method.
4545

46-
* `openalpr.Start ([config, [runtime, [count, [start_queue]]]])` - Initializes OpenALPR with default settings
46+
* `openalpr.Start ([config[, runtime[, count[, start_queue]]]])` - Initializes OpenALPR with default settings
4747
* config - Path to configuration file. On Windows defaults to the config file in node-openalpr directory, on Linux defaults to openalpr installation
4848
* runtime - Path to runtime data. On Windows defaults to "openalpr_runtime" folder in node-openalpr directory, on Linux defaults to openalpr installation
4949
* count - Number of concurrent OpenALPR processes to run - defaults to CPU core count
@@ -52,7 +52,7 @@ This is a breakdown of all of the methods available for node-openalpr. Start nee
5252
* `openalpr.StartQueue ()` - Starts the OpenALPR queue monitoring thread (normally started automatically after calling Start ())
5353
* `openalpr.StopQueue ()` - Stops the OpenALPR queue monitoring thread
5454
* `openalpr.queueLoop ()` - Method used in checking queue - can be called manually if start_queue is false for finer control
55-
* `openalpr.IdentifyLicense (path, options/callback[, callback])` - Begins the process of identifying a license from the given image
55+
* `openalpr.IdentifyLicense (path, options/callback[, callback])` - Begins the process of identifying a license from the given image, returns "working" or "queued" status result
5656
* path - Path to image - if image does not exist an exception will be thrown
5757
* callback/options - Additional options for the image or a callback
5858
* options.state (string) - State ("oh") license plates are in for additional validation

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "node-openalpr",
33
"description": "Node.js OpenALPR Bindings",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"license": "AGPL",
66
"keywords": [
77
"bindings",

src/openalpr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function OpenALPR () {
7070
return;
7171
}
7272

73-
loop = setInterval (this.queueLoop, 1);
73+
loop = setInterval (this.queueLoop, 32);
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)