How to increase the font on the LCD display

Discussion related to "under the hood" OpenMV topics.
Mikpap
Posts: 2
Joined: Fri Jan 26, 2018 9:59 am

How to increase the font on the LCD display

Postby Mikpap » Mon Jan 29, 2018 4:05 pm

The font on the LCD display is small (see download/file.php?mode=view&id=402&sid= ... 4b90aphoto), what can I do to increase it?
Attachments
1.jpg
1.jpg (326.97 KiB) Viewed 2704 times
User avatar
kwagyeman
Posts: 1407
Joined: Sun May 24, 2015 2:10 pm

Re: How to increase the font on the LCD display

Postby kwagyeman » Mon Jan 29, 2018 4:28 pm

Hi, this is just a limit of our code. I have a plan to make this higher resolution eventually... However, it's low on my to-do list.

In the mean time you can do the following things:

1. Help us out and add scaling control for drawing text to our C code. Then this gets fixed for you and everyone else using the system.

2. Roll your code to write text in python. This is not hard at all. You just need to get some fixed bitmaps for the things you want to draw and then set pixels in the right places for the text.
Nyamekye,
Mikpap
Posts: 2
Joined: Fri Jan 26, 2018 9:59 am

Re: How to increase the font on the LCD display

Postby Mikpap » Tue Jan 30, 2018 3:28 am

Hi!
Thanks for the reply.
1. Help us out and add scaling control for drawing text to our C code.
Then this gets fixed for you and everyone else using the system.

Where to find the code for LCD or img.draw_string exercise on the scaling of the text?

2. The question decided just maybe someone will be useful.
In my case, the measurement result
that should display on LCD display -
it is numbers. Numbers written in Paint and saved on a CD to
the temp folder/ - files 14.bmp, 15.bmp,16.bmp,etc.
Files 4 KB.
Next, read the file from disk in the bunch and displaying on LCD:
img1 = image.Image("/temp/%d.bmp" % sqpx , copy_to_fb=False)# sqpx - variable for output to LCD
lcd.display(img1)
The result on the photo.download/file.php?mode=view&id=404
download/file.php?mode=view&id=405
download/file.php?mode=view&id=403
Mikhail.
Attachments
5.jpg
5.jpg (41.38 KiB) Viewed 2089 times
4.jpg
4.jpg (37.25 KiB) Viewed 2089 times
3.jpg
3.jpg (50.27 KiB) Viewed 2089 times

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest