Isac Active Member Licensed User Longtime User Feb 25, 2014 #1 Hello I need to capture the flashes of light through a camera eg: I place the camera in front of the lamp if the lamp turn off and then turn on the camera should count me 1. Do you have any idea? Thank you for your attention
Hello I need to capture the flashes of light through a camera eg: I place the camera in front of the lamp if the lamp turn off and then turn on the camera should count me 1. Do you have any idea? Thank you for your attention
Erel B4X founder Staff member Licensed User Longtime User Feb 25, 2014 #2 Test the TYPE_LIGHT sensor (PhoneSensors from the Phone library). Upvote 0
Isac Active Member Licensed User Longtime User Feb 27, 2014 #3 But TYPE_LIGHT sensor does not detect the flash from the camera, but by a dedicated sensor. I currently have this problem I do not see the label numeric values is correct as I have initialized? Code: Copy Sub Activity_Create(FirstTime AsBoolean) ps.Initialize(ps.TYPE_LIGHT) End Sub Code: Copy Sub Button2_Click ps.StartListening("ps") End Sub Code: Copy Sub ps_SensorChanged (Values() As Float) Label1.Text=Values End Sub thanks Upvote 0
But TYPE_LIGHT sensor does not detect the flash from the camera, but by a dedicated sensor. I currently have this problem I do not see the label numeric values is correct as I have initialized? Code: Copy Sub Activity_Create(FirstTime AsBoolean) ps.Initialize(ps.TYPE_LIGHT) End Sub Code: Copy Sub Button2_Click ps.StartListening("ps") End Sub Code: Copy Sub ps_SensorChanged (Values() As Float) Label1.Text=Values End Sub thanks
Isac Active Member Licensed User Longtime User Feb 27, 2014 #4 I see this in the edit: [@42234c40 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2014 #5 Values is an array: Code: Copy Label1.Text = Values(0) Upvote 0
Isac Active Member Licensed User Longtime User Feb 27, 2014 #6 thanks it works I would use the camera to capture the switching on and off an LED? Led on = 1 Led off = 0 Upvote 0
thanks it works I would use the camera to capture the switching on and off an LED? Led on = 1 Led off = 0
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2014 #7 There is no simple way to detect with the camera. You can get the preview images and then analyze them. Analyzing the images is difficult. Upvote 0
There is no simple way to detect with the camera. You can get the preview images and then analyze them. Analyzing the images is difficult.