Re: Flash without photo?
Re: Flash without photo?
- Subject: Re: Flash without photo?
- From: Roland King <email@hidden>
- Date: Wed, 29 Oct 2014 19:54:59 +0800
Given the number of flashlight apps in the store the answer had to be a yes.
Check the docs for ‘torch’ and ‘flash', that seems to have interfaces for turning the LED on and off, whether the torch one or the flash one or possibly they are the same anyway.
> On 29 Oct 2014, at 7:31 pm, William Squires <email@hidden> wrote:
>
> Is it possible to fire the flash (LED) on my iPhone 5(s) without taking a photo? (i.e. is there a programmatic interface to turn the LED on/off via an ObjC message send? Can I talk to it directly using C? Also, does iOS have OpenCV, or something like it, so the camera can detect flashing lights (either from the "flash" LED on another smartphone, or even a flashlight)?
> I'd like to make a simple morse code sender/receiver using a pair of iPhones that have the "flash" LED, and the camera. The initial version would just have a UIView with a UIButton the user could tap to turn the LED on, and a UIImage (?) showing the current "view" the camera sees, and - under that - a UILabel showing the translated morse code as the user taps the button. Later, I'd like to have two UILabels, one for sending and one for receiving, so that it would also translate the incoming messages as well, by detecting the flashing with the camera itself. This is why I'm guessing I'll need OpenCV library.
> If not, no biggie.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden