OpenALPR Cloud API credit cost doubled per request


#1

I’m using the Cloud API to recognise plates but for each request that I’m making the credit_cost=2.
Why is this ? in the image there is only one car, and the response contains one license plate.
How is the credit_cost calculated? What are the factors that increase this cost. Thanks !

{
"uuid": "",
"data_type": "alpr_results",
"epoch_time": 1545210804653,
"processing_time": {
	"total": 1280.5090000038035,
	"plates": 319.39642333984375,
	"vehicles": 920.973000000231
},
"img_height": 960,
"img_width": 1280,
"results": [{
	"plate": "xxxx",
	"confidence": 94.51641845703125,
	"region_confidence": 99,
	"vehicle_region": {
		"y": 283,
		"x": 41,
		"height": 677,
		"width": 677
	},
	"region": "eu-de",
	"plate_index": 0,
	"processing_time_ms": 41.0821647644043,
	"candidates": [{
		"matches_template": 1,
		"plate": "xxxx",
		"confidence": 94.51641845703125
	}],
	"coordinates": [{
		"y": 684,
		"x": 245
	}, {
		"y": 752,
		"x": 508
	}, {
		"y": 805,
		"x": 515
	}, {
		"y": 738,
		"x": 252
	}],
	"vehicle": {
		"orientation": [{
			"confidence": 86.00997161865234,
			"name": "315"
		}, {
			"confidence": 12.451912879943848,
			"name": "0"
		}, {
			"confidence": 0.8108163475990295,
			"name": "225"
		}, {
			"confidence": 0.6690332889556885,
			"name": "45"
		}, {
			"confidence": 0.03399977833032608,
			"name": "135"
		}, {
			"confidence": 0.01122139859944582,
			"name": "270"
		}, {
			"confidence": 0.01020278874784708,
			"name": "180"
		}, {
			"confidence": 0.002814444713294506,
			"name": "missing"
		}, {
			"confidence": 2.7672431315295398e-05,
			"name": "90"
		}],
		"color": [{
			"confidence": 58.34894943237305,
			"name": "brown"
		}, {
			"confidence": 27.641523361206055,
			"name": "silver-gray"
		}, {
			"confidence": 7.193840503692627,
			"name": "gold-beige"
		}, {
			"confidence": 5.20823860168457,
			"name": "black"
		}, {
			"confidence": 0.8369055390357971,
			"name": "purple"
		}, {
			"confidence": 0.3163597285747528,
			"name": "red"
		}, {
			"confidence": 0.18376785516738892,
			"name": "blue"
		}, {
			"confidence": 0.1647094190120697,
			"name": "orange"
		}, {
			"confidence": 0.08228335529565811,
			"name": "green"
		}, {
			"confidence": 0.01002674549818039,
			"name": "white"
		}],
		"make": [{
			"confidence": 99.96878814697266,
			"name": "bmw"
		}, {
			"confidence": 0.011012747883796692,
			"name": "mercedes-benz"
		}, {
			"confidence": 0.006965473759919405,
			"name": "skoda"
		}, {
			"confidence": 0.003842359408736229,
			"name": "jaguar"
		}, {
			"confidence": 0.0015029899077489972,
			"name": "kia"
		}, {
			"confidence": 0.0012790316250175238,
			"name": "maserati"
		}, {
			"confidence": 0.0011120636481791735,
			"name": "geely"
		}, {
			"confidence": 0.0009802018757909536,
			"name": "proton"
		}, {
			"confidence": 0.0009645324316807091,
			"name": "seat"
		}, {
			"confidence": 0.0008093036012724042,
			"name": "ds-automobiles"
		}],
		"body_type": [{
			"confidence": 50.15888214111328,
			"name": "suv-standard"
		}, {
			"confidence": 29.283449172973633,
			"name": "sedan-wagon"
		}, {
			"confidence": 12.902929306030273,
			"name": "sedan-standard"
		}, {
			"confidence": 3.9155027866363525,
			"name": "suv-crossover"
		}, {
			"confidence": 1.1293810606002808,
			"name": "tractor-trailer"
		}, {
			"confidence": 0.7823010683059692,
			"name": "sedan-sports"
		}, {
			"confidence": 0.7657431364059448,
			"name": "antique"
		}, {
			"confidence": 0.3724794387817383,
			"name": "suv-wagon"
		}, {
			"confidence": 0.28276947140693665,
			"name": "sedan-convertible"
		}, {
			"confidence": 0.20938065648078918,
			"name": "sedan-compact"
		}],
		"year": [{
			"confidence": 66.98263549804688,
			"name": "2010-2014"
		}, {
			"confidence": 32.88172149658203,
			"name": "2015-2019"
		}, {
			"confidence": 0.135187566280365,
			"name": "2005-2009"
		}, {
			"confidence": 0.0004618619568645954,
			"name": "2000-2004"
		}, {
			"confidence": 9.611447921997751e-07,
			"name": "1995-1999"
		}, {
			"confidence": 1.7333148605302995e-07,
			"name": "missing"
		}, {
			"confidence": 1.301581988855105e-07,
			"name": "1980-1984"
		}, {
			"confidence": 4.515942109151183e-08,
			"name": "1990-1994"
		}, {
			"confidence": 5.568660643717749e-09,
			"name": "1985-1989"
		}],
		"make_model": [{
			"confidence": 69.67691040039062,
			"name": "bmw_218"
		}, {
			"confidence": 8.646892547607422,
			"name": "bmw_225"
		}, {
			"confidence": 6.056455612182617,
			"name": "bmw_216"
		}, {
			"confidence": 4.4137773513793945,
			"name": "bmw_114"
		}, {
			"confidence": 2.367992639541626,
			"name": "bmw_520"
		}, {
			"confidence": 1.7943941354751587,
			"name": "bmw_x1"
		}, {
			"confidence": 0.8992223739624023,
			"name": "bmw_230"
		}, {
			"confidence": 0.7783093452453613,
			"name": "bmw_140"
		}, {
			"confidence": 0.6696137189865112,
			"name": "bmw_518"
		}, {
			"confidence": 0.6410232186317444,
			"name": "bmw_525"
		}]
	},
	"matches_template": 1,
	"requested_topn": 10
}],
"credits_monthly_used": 4,
"version": 2,
"credits_monthly_total": 2000,
"error": false,
"regions_of_interest": [{
	"y": 0,
	"x": 0,
	"height": 960,
	"width": 1280
}],
"credit_cost": 2

}


#2

I found out. It was because the recognize_vehicle parameter was set .