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

Calling the setContrast method applies a zero value to the contrast parameter on the camera #4

Open
aaron-nerox opened this issue Dec 9, 2022 · 3 comments

Comments

@aaron-nerox
Copy link

Camera model and configuration :

  • Foscam camera model : FI9816P
  • IP configuration: static address
  • Dev environment: Android mobile application

I encountered this problem when i was try to set the camera video settings from my android app, the other settings such as brightness, hue, saturation and sharpness all work except for the contrast. i checked the source code of the library, but i don't think there was a problem with it. is there any suggestion about the solution for this?

@hypothermic
Copy link
Owner

Hello,

I do not actively maintain this library anymore, but if this is indeed a bug I'm willing to push fixes for it.
It's hard for me to replicate this issue because I do not own this camera model.
On my FI9900P, setting the contrast using this library works fine.

To make sure that this is indeed an issue with the library and not with the camera, we need to send the HTTP requests to the camera directly and see if that correctly sets the contrast value.
On a linux-based desktop you can try the following commands, replacing X with your camera's IP address, Y with the username and Z with the url-encoded password.

curl -kH "Accept: application/xml" "https://X/cgi-bin/CGIProxy.fcgi?usr=Y&pwd=Z&cmd=setContrast&contrast=80"

Next, see if the value changed:

curl -kH "Accept: application/xml" "https://X/cgi-bin/CGIProxy.fcgi?usr=Y&pwd=Z&cmd=getImageSetting"

Can you try sending those requests?

@aaron-nerox
Copy link
Author

Alright i will try it and see, thank you

@aaron-nerox
Copy link
Author

@hypothermic i figured out this contrast thing, it was a problem with the camera model. Now i have another problem. I'm trying to get a snapshot that returns a binary and my question is how can i convert that into a bitmap using java? because i tried everything and nothing seemed to work. if you help me with this one i will really appreciate it.

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

No branches or pull requests

2 participants