Questions tagged [cwac-camera]

cwac-camera is a discontinued and deprecated library to take pictures with Android’s Camera API.

As of December 2014, cwac-camera (by user commonsware) is discontinued and deprecated.

Taking pictures or videos using a third-party app is fairly straightforward, using ACTION_IMAGE_CAPTURE or ACTION_VIDEO_CAPTURE. However, you as the developer have little control over what happens with the image or video, other than indicating where the result gets stored. Plus, different camera apps have slightly different behavior, meaning that you are prone to getting inconsistent results.

https://github.com/commonsguy/cwac-camera

41 questions
8
votes
2 answers

Correct way to calculate best camera preview size maintaing aspect ratio

QUESTION How do you programmatically and accurately determine the best preview size for an application that is displaying the camera's preview at the device's screen size? (Or inside any view of variable dimensions, really). BEFORE YOU TRY TO MARK…
Max Worg
  • 2,932
  • 2
  • 20
  • 35
5
votes
2 answers

Android Studio debugger stepping though old version of code, not up to date

I'm new to Android dev so I may be missing something obvious that I can try. I'm trying to debug some code but the debugger is stepping through the old version of the code, and not current version in my project. Clearly it has skipped past my…
Jim W
  • 4,866
  • 1
  • 27
  • 43
3
votes
1 answer

Detect when video file has been really written?

The cwac-camera library has event hooks that are called before a photo is saved: @Override public void saveImage(PictureTransaction xact, byte[] image) {} Have I just overlooked this or is there no sink which tells me when a video file has been…
Oliver Hausler
  • 4,900
  • 4
  • 35
  • 70
2
votes
0 answers

Error saving image from camera(cwac camera)

I am trying to implement the cwac camera library for taking picture and storing them. When i tested the code on htc desire hd there were few complications. This is the screenshot of camera preview. And when I take picture it shows image preview…
SarojMjn
  • 569
  • 1
  • 7
  • 23
2
votes
1 answer

CWAC-Camera Preview and Picture Not Matching

I'm trying to set the picture preview in my app to be square, and have the resulting picture exactly match the preview. However, the picture and preview are turning out as shown in the screenshots below. Preview screenshot Picture screenshot The…
hBrent
  • 1,696
  • 1
  • 17
  • 38
1
vote
1 answer

How to change flash setting while camera is open in cwac-cam2?

I ma using cwac-cam2 for creating a camera app. I am not able to set flash modes while running the camera window and the flash is on always. I also don't see a button for changing flashmode. Am i doing something wrong? Here is the code: public class…
SuperHaker
  • 178
  • 1
  • 15
1
vote
2 answers

How to import cwac camera library

I am trying to import this project in my android studio version 2.1.2 But I am getting below error couldn't solve it . Error : Error:(12, 13) Failed to resolve: com.commonsware.cwac:camera:0.6.12 Show in FileShow in Project Structure…
user6593534
1
vote
0 answers

CWAC-Cam2 prerecorded video instead of camera

I'm building app using CWAC-Cam2 library. I need to test different application behaviour depending on objects exist on captured pictures. Is it possible to feed to the library video from a video file instead of actual camera output to simulate real…
Sergey
  • 11
  • 2
1
vote
1 answer

Image clicked from Camera inside android app is blurred and has square pattern all over it

I am developing an app that uses phone camera to click pictures. On a few phones the camera images captured has square pattern as shown in the picture. I was earlier using the default Camera intent for opening the camera. Now I use the…
1
vote
1 answer

Video Previewing in CWAC-CAMERA

In the CWAC-CAMERA DOCUMENT it is written "From a UI standpoint, the CameraFragment solely handles the preview pane.".But for videos i don't see any preview is avalaible after i capture video.Do CWAC-CAMERA library has inbuilt video previewing?Below…
Android Developer
  • 9,157
  • 18
  • 82
  • 139
1
vote
0 answers

No exif data for images using front facing camera using cwac-library

I have built my custom camera app using cwac-library. I am trying to access exif data for the images captured using front camera, but exif tags like TAG_GPS_LATITUDE, TAG_GPS_LATITUDE_REF, TAG_GPS_LONGITUDE, TAG_GPS_LONGITUDE_REF, TAG_MAKE,…
AsterCoder
  • 11
  • 4
0
votes
1 answer

How to get camera instance from cwac- cam2 for face detection?

I would like to know how to get camera instance from CWAC- CAM2 library in android so that I can attach face detector to camera for face detection. Need know how to do this in android ?
Aman Srivastava
  • 1,007
  • 1
  • 13
  • 25
0
votes
1 answer

Is it possible to kick off recording directly using cwac-cam2?

I would like to use cwac-cam2 to record video on a headless device. I was wondering if I could use this component to kick off video recording without a user interacting with the record button in the activity class? Basically, using the library…
RobGries
  • 49
  • 1
  • 9
0
votes
0 answers

How to save Recorded VideoFile in CWAC Camera

As I find there is a method for PictureTransaction to save images in Cwac. How do we go about saving the Video Recorded by cwac camera?
Savita
  • 747
  • 1
  • 7
  • 16
0
votes
0 answers

OnLongClickListener Doesn't Start Video Recording CWAC-Camera

I am trying implementation like SnapChat where the user clicks the button it captures photo and when user holds button video recording starts. I am using CamerView of CWAC-Camera Library for my camera implementation. This is in my onCreate Method…
Savita
  • 747
  • 1
  • 7
  • 16
1
2 3