Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting null as a results[0].plate #21

Open
krdf opened this issue Jul 18, 2017 · 1 comment
Open

getting null as a results[0].plate #21

krdf opened this issue Jul 18, 2017 · 1 comment

Comments

@krdf
Copy link

krdf commented Jul 18, 2017

Hi can you help with the below issue. After i run the node with open-alpr im getting this to the console.
working
working
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
queued
0 71.274445 No results
1 77.096451 No results
3 67.120155 No results
2 68.399857 No results
4 73.58625 No results
5 77.468651 No results
7 68.937752 No results
6 72.088425 No results
8 70.57518 No results
9 71.410988 No results
10 68.046936 No results
11 70.8302 No results
12 74.691406 No results
13 77.752182 No results
15 70.457535 No results
14 74.083084 No results
16 72.390572 No results
17 72.992416 No results
19 70.691345 No results
18 71.370705 No results
21 70.280167 No results
20 74.823364 No results
23 75.887772 No results
22 77.164322 No results
25 71.756798 No results
24 73.942528 No results
26 70.283066 No results
27 74.114052 No results
29 69.133797 No results
28 71.247253 No results
30 82.876991 No results
31 82.433937 No results
33 70.52037 No results
32 74.47908 No results
34 67.245842 No results
true

This is the rest of the code

`const express = require('express');
const router = express.Router();
const openalpr = require ("node-openalpr");

router.get('/', function(req, res, next) {

    	function identify (id, path) {
			console.log (openalpr.IdentifyLicense (path, function (error, output) {
				var results = output.results;
		        console.log (id +" "+ output.processing_time_ms +" "+ ((results.length > 0) ? results[0].plate : error));
			
				if (id == 34) {
					console.log (openalpr.Stop ());
				}
			}));
		}

		openalpr.Start ("/media/k/Elements/testApp/node_modules/node-openalpr/openalpr.conf", "/media/k/Elements/testApp/node_modules/node-openalpr/openalpr_runtime/", 2,true);
		openalpr.GetVersion ();

		for (var i = 0; i < 35; i++) {
			identify (i, './public/plates/plate.jpg');
		}

});`

@devbugice
Copy link

function identify(path) {
    console.log(openalpr.IdentifyLicense(path, function (error, output) {
        var results = output.results;
        console.log(output.processing_time_ms + " " + ((results.length > 0) ? results[0].plate : "No results"));
        console.log(openalpr.Stop());
    }));
}

openalpr.Start();
openalpr.GetVersion();

identify("ea7the.jpg");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants