tufanv Expert Licensed User Longtime User Jun 25, 2013 #1 Hello guys, Is there any info or tutorial that we can analyze the color of the center of the camera or a snapshot ? For example if the center of the picture camera showing is black it will analyze the color and write black to a label ? Thanks
Hello guys, Is there any info or tutorial that we can analyze the color of the center of the camera or a snapshot ? For example if the center of the picture camera showing is black it will analyze the color and write black to a label ? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2013 #2 You should use the CameraEx class. Do you want to check the value when a picture is taken or all the time (preview frames)? Upvote 0
You should use the CameraEx class. Do you want to check the value when a picture is taken or all the time (preview frames)?
tufanv Expert Licensed User Longtime User Jun 25, 2013 #3 i want to check all the time the camera is open Erel Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2013 #4 See how the preview event is handled in this example: http://www.b4x.com/forum/basic4andr...losed-circuit-tv-cctv-example.html#post136681 (CCTV client). Once you get the JPEG bytes array you can use: B4X: Dim In As InputStream In.InitializeFromBytesArray(...) Dim bmp As Bitmap bmp.Initialize2(In) bmp.GetPixel(...) Make sure not to do it for every frame as it will be too slow. Upvote 0
See how the preview event is handled in this example: http://www.b4x.com/forum/basic4andr...losed-circuit-tv-cctv-example.html#post136681 (CCTV client). Once you get the JPEG bytes array you can use: B4X: Dim In As InputStream In.InitializeFromBytesArray(...) Dim bmp As Bitmap bmp.Initialize2(In) bmp.GetPixel(...) Make sure not to do it for every frame as it will be too slow.