Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera example #41

Merged
merged 10 commits into from
Nov 11, 2016
Merged

Camera example #41

merged 10 commits into from
Nov 11, 2016

Conversation

trivedigaurav
Copy link
Member

This is the basic example for the camera facade. Saves the image with the name given by the user.

@arnaldorusso
Copy link

Hey there!
Is it possible to limit the frame area that will be saved?
In your example you use fullscreen = 0. Is there another parameter to set a center square area to be used?
Thanks
Arnaldo.

@trivedigaurav
Copy link
Member Author

I think the statement that you are referring to is in buildozer.spec. That file is meant to specify the parameters for the example app and does not affect the camera capture.

We do not have any such feature in plyer / kivy as yet. But you should be able to use Pygame APIs to achieve what you want once the image is saved: http://www.pygame.org/docs/ref/transform.html

@amalgamatedclyde
Copy link

having some trouble on Nexus4. after i click the camera icon to take the picture and the image preview stops, the check button at the bottom won't save the image. the back button and exit button both work. any thoughts?

clyde

@trivedigaurav
Copy link
Member Author

@amaglamatedclyde Could you give me details about your android version? Plyer uses The media store API for capturing images. The part that you are talking about is most likely not in our control and is managed by Android itself.

Also, It would be useful if you could capture a screenshot of the problem. I am not too confident if I understand your problem correctly.

@amalgamatedclyde
Copy link

hi- on Nexus4 Android 4.4.2 the camera preview works, the focus works, and it would appear that an image is captured when the camera icon is pressed. however, at the save image screen the check button has no effect. i looked at logcat and saw no attempted save operations.

i can look more closely if it would help, but maybe someone should reproduce the problem first. i will try this on the Nexus7 today.

thx
clyde

screenshot_2014-05-15-10-54-13

@amalgamatedclyde
Copy link

i just realized the native camera app doesn't even show that screen with the back button, the check mark and the X.

also, in the 'basic' app, the back button goes 'back' when pressed and the 'X' sends the app to the background.

c

@trivedigaurav
Copy link
Member Author

Hmm. I see. Do you get a message saying the picture could not be saved when your press the back button?

I tested this on 4.4.2 as well but on a Samsung Galaxy S4. Let me see if I can try it on a Nexus.

@amalgamatedclyde
Copy link

no, i didn't get a message.

i also had trouble on the Nexus 7 but it was different. i got a popup that says 'Can't connect to camera'

c

@redfast00
Copy link

@trivedigaurav I have the same problem as @amalgamatedclyde (pressing checkmark does nothing), but when I return to the application (by pressing X), I get a 'could not save picture' popup. Cyanogenmod 13.0 (Android 6) on OnePlus Two.

@kiok46
Copy link
Contributor

kiok46 commented Apr 24, 2016

@redfast00 I will look into this in a couple of days (Have exams now).

@redfast00
Copy link

@kiok46: Would you mind if I opened an issue?

@dessant
Copy link
Contributor

dessant commented Apr 24, 2016

@redfast00, if you're convinced the bug is not in this pull request, but in plyer, then an issue whould be ok. Otherwise sorting it out on this thread is recommended.

@kiok46
Copy link
Contributor

kiok46 commented Apr 24, 2016

@redfast00 Also, there is already an issue opened by @brousch demanding a working example for camera façade. #16

@akshayaurora akshayaurora self-assigned this Nov 11, 2016
@akshayaurora akshayaurora merged commit 7939077 into kivy:master Nov 11, 2016
@akshayaurora
Copy link
Member

@thegrymek thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants