Raspberry Pi camera module

stevedee
Posts: 42
Joined: Monday 20th March 2017 6:06pm

Re: Raspberry Pi camera module

Post by stevedee » Saturday 14th October 2017 10:54am

I don't have any time this weekend to look at this, but I wonder whether you should be using v4l to get images from RaspiCam (via /dev/video0) rather than using Raspistill or Raspivid in a Shell.

I think there are Gambas components for both v4l and gstreamer that might be worth exploring.

sony
Posts: 18
Joined: Wednesday 14th June 2017 12:28am

Re: Raspberry Pi camera module

Post by sony » Saturday 14th October 2017 1:46pm

Hi Steve,
Sorry I'm not use v4l for picamera but v4l for usb webcam.

User avatar
cogier
Site Admin
Posts: 115
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Raspberry Pi camera module

Post by cogier » Saturday 14th October 2017 3:27pm

I am trying to understand what you are trying to do, can you explain what you hope to achieve.

Are you using the Pi and a USB camera or a Pi Camera?

Are you trying to capture the video on the Pi or stream it to another computer?

sony
Posts: 18
Joined: Wednesday 14th June 2017 12:28am

Re: Raspberry Pi camera module

Post by sony » Saturday 14th October 2017 9:40pm

Sorry I'm slow in english ;) ....
I only using RPi.
By using my latest program, I use picamera and RPI but I can not copy the video into drawingarea as picture when a button pressed.
If I have a picture (gray scale/black white) inside drawing area I will count the pixel and compare the pixel value with my reference.

User avatar
cogier
Site Admin
Posts: 115
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Raspberry Pi camera module

Post by cogier » Sunday 15th October 2017 3:45pm

OK let's see if I have got this right. Attached is my PiCam software with a additional Form and Class.

Run the program. Take a picture with the size at 800 x 800 then click on the 'Sony' button and you will see the picture you took in a DrawingArea.

Is this what you are looking for?

This will only work on a Raspberry Pi using the picamera
PiCam_Sony.tar
(180 KiB) Downloaded 8 times

sony
Posts: 18
Joined: Wednesday 14th June 2017 12:28am

Re: Raspberry Pi camera module

Post by sony » Sunday 15th October 2017 5:12pm

Hello,
I run your program, but that is not I mean. I mean just click the "Sony" button the current running video is show in drawingarea as picture. I do not need read jpg file to visualize into drawingarea, because in the next time I will do million times to take the current running video is show in drawingarea as picture.

regards
Sony

sony
Posts: 18
Joined: Wednesday 14th June 2017 12:28am

Re: Raspberry Pi camera module

Post by sony » Monday 16th October 2017 1:59pm

Hello,
Today I read your program carefully and now I understand about using ram drive :) I assume read / write into ram million times is not to make ram damage. So with raspstill command to save image *.jpg file into ram drive and read again then place into drawingarea.
Thank you very much for helping me.

Best regards

Sony

User avatar
cogier
Site Admin
Posts: 115
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Raspberry Pi camera module

Post by cogier » Monday 16th October 2017 2:40pm

Hi Sony,

You cannot see the 'raspistill' output over SSH so the program takes a photo 75 times a minute that is stored in RAM which is quicker and does no damage to the SD card. The picture can then be seen over a SSH link.

Glad it helped,

Charlie

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest