Find Jobs
Hire Freelancers

Detect dark image application: code that needs fixing -- 2

€8-30 EUR

已完成
已发布超过 9 年前

€8-30 EUR

货到付款
Due to work related travel , I had postponed this project for my hobby. I am reopening it again to get help with fixing the code of a simple app that checks the front camera for when the image goes dark. ( suggest code provided ) Requirements: -Must be an Eclipse format file -Single screen app - The threshold value should be kept in a variable that i can change for testing. - Must have a method/function with the code to be executed when the threshold is reached (see example below - onPreviewFrame() ). For testing it should just show a popup with the current luminance value. - It should work with the lowest Android version possible (anything Gingerbread or higher hopefully ) That is it. I hope this is as simple as i think and welcome any suggestions regarding this posting. I found an example in Stackoverflow that might get it started: [login to view URL] ----- from stack overflow -------- This is fairly straightforward. You should use a surfaceview and camera preview. That way you get each frame as a byte array. The default format for the frame is YUV, which is Y (luminance) and UV, which are chrominance. You can use Y to calculate average luminance in the image. If you're using BGR, you can calculate luminance using: Y = 0.2126 R + 0.7152 G + 0.0722 B class Preview extends ViewGroup implements [login to view URL] { SurfaceView mSurfaceView; SurfaceHolder mHolder; Preview(Context context) { super(context); mSurfaceView = new SurfaceView(context); addView(mSurfaceView); // Install a [login to view URL] so we get notified when the // underlying surface is created and destroyed. mHolder = [login to view URL](); [login to view URL](this); [login to view URL](SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } ... } adding the callback to your class, means for every frame this method is called: onPreviewFrame(byte [] frame, Camera cam){ //do some processing // } --- end of stackoverflow -----
项目 ID: 6498306

关于此项目

4提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hi, Dear cheSteve!!! Thanks for your beautiful posting. I am a full-time freelancer who has rich experiences in developing android app. i have been understand what you want and i can do it wonderfully. if you check me, i don't want more money. i want only good feedback. please touch me. I will wait for your good response. thanks. Your developer, trustman.
€24 EUR 在0天之内
5.0 (10条评论)
3.9
3.9
4威客以平均价€32 EUR来参与此工作竞价
用户头像
Hi, Dear Sir. "High Quality + Powerful Service + Rapid Communication!" is my forever business policy! I just read your job posting with interest and carefully, and I’ll waiting interview with you ardently because this job is the most similar as my Image Processing experiences. After read sir's job description, I am really glad and wonder, because sir's job is most fit in my other skills (Image processing, Computer vision, MATLAB & Report , OpenCV, OpenCV4AndroidSDK, JavaCV, OpenCViOS). As you can see my service profile and projects portfolio images (Full Image Processing experience, recognition, PC/Platform Compatibility), I'm Image Processing / Mobile (Android, iPhone) field expert. If you give me opportunity to award me, I will provide high quality and powerful service. Thanks you for reading! Best regard.
€19 EUR 在1天之内
5.0 (1条评论)
2.1
2.1
用户头像
Hi. First of all, Thank you for sending me invitation for bid on this project. I understand your code. I am implementing it and let me test it. I will let you know very soon. Thanks & Best Regards, Nikhil
€23 EUR 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

GERMANY的国旗
Tuebingen, Germany
5.0
3
付款方式已验证
会员自3月 12, 2012起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。