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

[需求]:制作低成本延时摄影设备 #52

Open
2 tasks done
trdthg opened this issue Dec 2, 2024 · 5 comments
Open
2 tasks done

[需求]:制作低成本延时摄影设备 #52

trdthg opened this issue Dec 2, 2024 · 5 comments
Labels

Comments

@trdthg
Copy link
Collaborator

trdthg commented Dec 2, 2024

如何认领

请直接在下方回复,我会把 issue 的 assignees 设置为你

认领者需要遵守以下要求

  • 每两周必须在评论中更新进度,无论是学习进度还是开发进度
  • 如果1 个月没有任何进展, 则认定为认领失败, assign 将被取消,可以由其他人认领
  • 如遇到节假日等特殊情况,同步进度日期可以顺延

注意事项

  • 学习也算进展,所以小白不必担心
  • 以上日期需要按照实际情况调整
  • 任务按情况可以被多人认领合作完成

需求描述

每日 IO,每天拍一张照片上传到 alist,放在 IO 网站展示

用于记录卫生情况等

实现方式

  1. 硬件调用摄像头拍照
  2. 调用 alist api 上传图片,图片命名为 xxxx-xx-xx 格式
  3. 网站每天自动计算出文件名,并展示,参考 [需求]:制作低成本延时摄影设备 #52 (comment)
  4. (optional) 手动拍照,上传到 alist
  5. (optional) 手动拍照,通过 @qq 机器人上传到 alist

文档资料

难度

简单 (什么都不会也能学习做)

能力要求

本项目可以作为嵌入式方向的学习的练手项目

  • 需要能够正常访问 github, 并注册账号
  • 能自学 python 处理图片数据,发送 HTTP 请求的基本方法
  • 能学会如何阅读 alist api 文档
  • 对研究硬件调用摄像头感兴趣

关闭 Issue 前请确认以下内容

  • 需要上传代码:<PR 链接>
  • 需要参加茶话会分享:<issue 链接>
@trdthg trdthg added the task label Dec 2, 2024
@trdthg
Copy link
Collaborator Author

trdthg commented Dec 2, 2024

html 展示参考以下代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Image Example</title>
    <script>
        // JavaScript 函数以设置图片路径
        function setImage() {
            const imgElement = document.getElementById('dynamicImage');
            const prefix = 'prefix/';
            const date = '2024-01-11'; // 你可以根据需要动态生成日期
            const imgPath = prefix + date + '.jpg';
            imgElement.src = imgPath;
        }

        // 在页面加载时设置图片
        window.onload = setImage;
    </script>
</head>
<body>
    <h1>自动设置图片路径</h1>
    <img id="dynamicImage" alt="动态图片" />
</body>
</html>

@trdthg trdthg closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2024
@trdthg trdthg reopened this Dec 2, 2024
@hjrbill
Copy link

hjrbill commented Dec 3, 2024

反对,请说明本任务的实际价值意义

@trdthg
Copy link
Collaborator Author

trdthg commented Dec 3, 2024

@wapapapapoo (山东人)提出的想法, 每日 IO,可以放在网站主页上

我们上周六 (2924-11-30) 开会都同意了,你没参加

@hjrbill
Copy link

hjrbill commented Dec 3, 2024

@wapapapapoo (山东人)提出的想法, 每日 IO,可以放在网站主页上

我们上周六 (2924-11-30) 开会都同意了,你没参加

那请你向我讲述实际意义😓

@trdthg
Copy link
Collaborator Author

trdthg commented Dec 3, 2024

实际意义

  • 可以作为嵌入式方向的同学的练手项目
  • 拍照内容也不一定是 IO,也可以是里面的物品,例如一朵花,窗外风景,延时摄影
  • 作为 嵌入式,摄像头, AI 结合的前置项目,例如智能人脸识别

其他

  • 拍照可以在没人的时候(早上 8 点等时间) 拍
  • alist 图片数据可以放在公开/私有目录下

@trdthg trdthg changed the title [需求]: 部署硬件每天给 IO 实验室拍照并上传至 alist [需求]:制作低成本延时摄影设备 Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants