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

Dimensions of width and height for India #24

Open
meghamodi opened this issue May 16, 2018 · 7 comments
Open

Dimensions of width and height for India #24

meghamodi opened this issue May 16, 2018 · 7 comments

Comments

@meghamodi
Copy link

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)

@debihiga
Copy link

debihiga commented Jun 6, 2018

It does not matter as long as you keep the aspect ratio (line 64)

@alucard079
Copy link

File "crop_plates.py", line 34
print "input_dir (%s) doesn't exist"
^
SyntaxError: invalid syntax

what to do if this happens?

@debihiga
Copy link

debihiga commented Jan 6, 2019

Hi. I suspect you are using Python 3. Have you tried with Python 2?

@alucard079
Copy link

alucard079 commented Jan 7, 2019

@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?

@alucard079
Copy link

@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?

@alucard079
Copy link

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
`

@alucard079
Copy link

@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.

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

3 participants