Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Need to capture images inside the rectangular view using camera

Andreas_D_
Beginner
713 Views

Hi Everyone, 

I'm wondering if I can do this with intel xdk camera plugin

camera-rectangle-overlay.png

 

Kindly suggest me how to do it with intel xdk

Thanks in advance!

0 Kudos
2 Replies
Rakshith_K_Intel
Employee
713 Views

The basic camera plugin and intel.xdk camera plugin does not allow capturing a section of image.

You have to look for a Cordova plugin that does this or write your own.

Another way to achieve this is to crop the image after it is captured using camera plugin, there are javascript libraries available to crop image using File API. Here is a stackoverflow link that may help: http://stackoverflow.com/questions/11151995/crop-image-from-camera-before-upload-phonegap

0 Kudos
Diego_Calp
Valued Contributor I
713 Views

Hi,

Seems that there is a plugin to crop the image from camera or gallery:

https://github.com/LokeshPatel/Cordova-Android-CropImage-Plugin

I have not tried it

Best wishes,

Diego

0 Kudos
Reply