Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Process Cellphone Camera Image

Community Beginner ,
Jun 18, 2015 Jun 18, 2015

Hello everyone,

I'm wondering if it is possible to use Actionscript to adjust things like brightness and contrast on an image from my Galaxy Note 4's camera.  I already have a basic app that allows a stream to the phone screen directly from the camera, but I must do more!  Any direction would help.  (I'm not that great with Actionscript 3.0 yet.) 

Thanks.

TOPICS
ActionScript
582
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jun 20, 2015 Jun 20, 2015

You can apply such transformations on any display object with this handy class: http://chargedweb.com/labs/2010/04/30/fast_brightness_contrast_saturation/

Are you only displaying a snapshot of the camera view or are you really streaming the camera feed to the app? Such calculations are very CPU intensive so I would be careful with it.

Translate
Guide ,
Jun 20, 2015 Jun 20, 2015

You can apply such transformations on any display object with this handy class: http://chargedweb.com/labs/2010/04/30/fast_brightness_contrast_saturation/

Are you only displaying a snapshot of the camera view or are you really streaming the camera feed to the app? Such calculations are very CPU intensive so I would be careful with it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 20, 2015 Jun 20, 2015

Thanks for the reply!  The goal is to do it real-time with a video stream.  Is there a potential of damaging anything by doing this, or will my app simply not work?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 21, 2015 Jun 21, 2015

hehe no you can't damage anything by doing it.. your app might crash or react sluggish. But as long as you don't use any crazy image manipulations you should be fine.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 22, 2015 Jun 22, 2015

Funkysoul, you da man!

It functioned well (with choppy video), but it only worked from the CPU as you mentioned before.  I tried switching the debug mode to GPU and it just gave me the direct camera feed with no processing.  You can probably guess my next question. 

Is it possible to utilize the GPU to do the processing?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 25, 2015 Jun 25, 2015
LATEST

hehe..

You might want to have a look at Starling Framework, but to be honests I'm not sure if this is going to be a helper, performance wise yes, but it might bring other complications with it.

Starling - The Cross Platform Game Engine

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines