Open meghamodi opened 6 years ago
It does not matter as long as you keep the aspect ratio (line 64)
File "crop_plates.py", line 34 print "input_dir (%s) doesn't exist" ^ SyntaxError: invalid syntax
what to do if this happens?
Hi. I suspect you are using Python 3. Have you tried with Python 2?
@debihiga Thanks, It's okay now, I have run the crop.plates.py
the dimensions that being asked was the exact dimension of my plate? in the parameter of this py
?
Some of the cropped images doesn't have the exact fit of a plate, is that okay?
@debihiga
what to use for crop.plates.py
dimensions or the argument of this
vs
prep.py
or it is the same exact dimensions (or this must be larger than crop.plates.py
)
The exact size of our plate number is 390x140 should I use this?
I'm having a problem with this, I randomly guess the value of template_max_width_px = 163 template_max_height_px = 63
I don't know what to consider about this, would you help me?
` ; 35-50; 45-60, 55-70, 65-80, 75-90 char_analysis_min_pct = 0.35 char_analysis_height_range = 0.15 char_analysis_height_step_size = 0.10 char_analysis_height_num_steps = 5
segmentation_min_speckle_height_percent = 0.3 segmentation_min_box_width_px = 4 segmentation_min_charheight_percent = 0.4; segmentation_max_segment_width_percent_vs_average = 1.6;
plate_width_mm = 390 plate_height_mm = 140 multiline = 0
char_height_mm = 70 char_width_mm = 35 char_whitespace_top_mm = 22 char_whitespace_bot_mm = 35
template_max_width_px = 163 template_max_height_px = 63
; Higher sensitivity means less lines plateline_sensitivity_vertical = 22 plateline_sensitivity_horizontal = 50
; Regions smaller than this will be disqualified min_plate_size_width_px = 85 min_plate_size_height_px = 38
; Results with fewer or more characters will be discarded postprocess_min_characters = 4 postprocess_max_characters = 8
ocr_language = lph
; Override for postprocess letters/numbers regex. postprocess_regex_letters = [A-Z] postprocess_regex_numbers = [0-9]
; Whether the plate is always dark letters on light background, light letters on dark background, or both ; value can be either always, never, or auto invert = auto `
@debihiga in crop_plates.py
what was the true definition of --plate_width and --plate_height
, I'm getting confused some people their values would measure around one-hundreds.
I'm not sure on what dimensions that the crop_plates.py
are looking for, if it's the full plate dimensions or the template dimensions.
in our full plate we have 390x140 in mm
in template, I'm having a trouble what should be my basis to make a measurement with this.
In the prep.py file for training for country, the dimensions of width and height are in which units, while using this command python crop_plates.py --input_dir= --out_dir= --plate_width=190 --plate_height=46(mentioned in mm)