Search found 174 matches

by cogier
Tuesday 20th February 2018 3:01pm
Forum: General
Topic: Raspberry Pi camera module
Replies: 30
Views: 2754

Re: Raspberry Pi camera module

Have a look at the attached program to see if it helps you.

It requires the installation of 'zbar-tools' and the use of a standard webcam NOT a Raspberry Pi camera.

Tested on Raspberry Pi 3 and Linux Mint 18.3.

It will scan a barcode and show the output.
read.png
read.png (398.15 KiB) Viewed 712 times
BarcodeReader.tar.gz
(13.28 KiB) Downloaded 28 times
by cogier
Saturday 17th February 2018 4:36pm
Forum: General
Topic: Raspberry Pi camera module
Replies: 30
Views: 2754

Re: Raspberry Pi camera module

Matt and I have done some work for you. Have a look at the attached program.

When you want to 'Copy' just use the mouse to select the area to copy and when you release the mouse button it will copy across automatically.

Hope you like it.
PiCamera.png
PiCamera.png (187 KiB) Viewed 728 times
PiCamera.tar.gz
(36.89 KiB) Downloaded 27 times
by cogier
Saturday 17th February 2018 4:25pm
Forum: General
Topic: Current forum
Replies: 3
Views: 291

Re: Current forum

Hi Bill and welcome, This is not an official forum. As far as I know there is only the mailing list http://lists.gambas-basic.org/listinfo/user but something may happen here soon http://www.gambas-basic.org/ . We set this up when 'gambas.guru' closed. I was hoping to get more traffic that we do, see...
by cogier
Thursday 15th February 2018 9:38pm
Forum: General
Topic: Writing a simple text file
Replies: 5
Views: 455

Re: Writing a simple text file

Why does Gambas default to the root directory? If you were running a Distro like Puppy that gives you access to all the directories without the need to use 'sudo' or root passwords Gambas will happily put your new file in the 'root' directory. This is fine but allows you to really screw things up v...
by cogier
Thursday 15th February 2018 10:30am
Forum: General
Topic: Writing a simple text file
Replies: 5
Views: 455

Re: Writing a simple text file

Hi and welcome. If I read your request correctly there is a very easy way to do this in Gambas. The reason you are getting "Access forbidden" is because you are trying to write your file to the root directory which you are not allowed to do. Your 'Home' directory is the place to save your file and G...
by cogier
Sunday 11th February 2018 3:08pm
Forum: General
Topic: Raspberry Pi camera module
Replies: 30
Views: 2754

Re: Raspberry Pi camera module

OK. I suggest you add the following code at line 79 to create 'param.par' if it does not exist If Not Exist(User.home &/ "param.par") Then File.Save(User.home &/ "param.par", "") I changed all references to the RamDrive to /tmp (not /tmp1) and added the following 'Sub' which I took from 'PiCam'. Pub...
by cogier
Thursday 08th February 2018 3:28pm
Forum: General
Topic: Raspberry Pi camera module
Replies: 30
Views: 2754

Re: Raspberry Pi camera module

Hi Sony, I got the LibWiringPi sorted :D Then at line 78 I got error 'File of directory does not exist' :o nf = "~/param.par" hfile = Open nf for Input I REMed that out then I got another error at Line 180, 'Unable to load picture' :? hMyPic = Picture.Load("/var/tmp1/sample.jpg") What am I missing?
by cogier
Wednesday 07th February 2018 8:29am
Forum: Lounge
Topic: so silent
Replies: 6
Views: 495

Re: so silent

Code: Select all

My latest project still use camera module with RPi and run with your help.
I'm interested in this. Have you got some code we can look at. I wrote PiCamera which is on the Farm if that helps.
by cogier
Saturday 03rd February 2018 11:55am
Forum: Lounge
Topic: so silent
Replies: 6
Views: 495

Re: so silent

Hi sony, It is a shame that there is not more activity on the site but it seems that Gambas is a niche programming language. I would expect a little more traffic when you see the amount of downloads some of the 'Farm' software gets. I put an email address in the programs I publish but I have only ha...
by cogier
Monday 15th January 2018 3:16pm
Forum: General
Topic: 'Ends'
Replies: 2
Views: 338

Re: 'Ends'

Excellent! Well using that method you could shorten: -
TextBox1.Text = Mid((Last.name), InStr(Last.name, "Button") + Len("Button"))
To
TextBox1.Text = Mid(Last.name, InStr(Last.name, "Button") + 6)
It just goes to show that there is always another way to do things. :D