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

第二讲内容资源建设(截至时间3月12日) #12

Closed
Tracked by #10
will-ww opened this issue Mar 1, 2023 · 8 comments
Closed
Tracked by #10

第二讲内容资源建设(截至时间3月12日) #12

will-ww opened this issue Mar 1, 2023 · 8 comments

Comments

@will-ww
Copy link
Contributor

will-ww commented Mar 1, 2023

No description provided.

@will-ww
Copy link
Contributor Author

will-ww commented Mar 1, 2023

本讲需要建设的内容包括:

@will-ww
Copy link
Contributor Author

will-ww commented Mar 1, 2023

伍泰炜同学去年开源课程的仓库,非常好的一个参考材料:https://github.com/X-lab2017/22-Spring-OSDD

@will-ww will-ww added the weekly tasks 本周任务 label Mar 1, 2023
@TieWay59
Copy link
Member

TieWay59 commented Mar 2, 2023

我已经把我想到的都写了,目前先这样8000字:

https://xlab2017.yuque.com/fo4x1u/kb4iyb/is148uliy9xfg3y8?singleDoc# 《开源项目的结构》

@will-ww
Copy link
Contributor Author

will-ww commented Mar 2, 2023

我已经把我想到的都写了,目前先这样8000字:

https://xlab2017.yuque.com/fo4x1u/kb4iyb/is148uliy9xfg3y8?singleDoc# 《开源项目的结构》

厉害厉害~

@will-ww will-ww added content contribution and removed weekly tasks 本周任务 labels Mar 3, 2023
@Bruce-Jay
Copy link
Contributor

我想帮助补充关于视频字幕+PPT的内容

@will-ww
Copy link
Contributor Author

will-ww commented Mar 30, 2023

我想帮助补充关于视频字幕+PPT的内容

You are welcome, please find the resource here~

Here is an example:https://www.yuque.com/bifenglin/oormdi/fmgd2gwe6y321a0r?singleDoc#

@Bruce-Jay
Copy link
Contributor

我想帮助补充关于视频字幕 + PPT 的内容

You are welcome, please find the resource here~

Here is an example:https://www.yuque.com/bifenglin/oormdi/fmgd2gwe6y321a0r?singleDoc#

https://www.yuque.com/g/easonlin-0hgnr/ggvzqr/collaborator/join?token=a6ycXy2IiEqfDbPT# 邀请你共同编辑知识库《oss101》

由于我现在还没有语雀会员,请加入知识库以后预览一下我编辑的第二讲图文教程是否可行。

我是先将视频下载,然后使用飞书妙记的转写功能将其转成文字,再使用 chatGPT 将里面的口语化助词去掉,再转换成书面性较强、可读性较高、内容密度较高的文字。在 chatGPT 中,我输入了如下命令:以下是一段比较口语化的文字,请你将其的语言风格转化得较为书面。要求:不要压缩过多原文。并且适当保留原文中的例子,使用讲述者的口吻输出。然后跟上换行与转写得到的文字,输出的内容就组成了我的这篇图文课程。

此外,我也询问 gpt 帮我得到一个 python 程序让 pdf 全部转换为图片,插入语雀文档就方便很多了。接下来就是把图片和文字对上,以及校准文字,和让上下文通顺的任务了。整个过程耗时五个小时左右,对我来说还是比较重的一个任务。

import os
import fitz  # PyMuPDF
from PIL import Image

def pdf_to_images(pdf_file, output_folder):
    os.makedirs(output_folder, exist_ok=True)
    doc = fitz.open(pdf_file)

    for pg in range(doc.page_count):
        page = doc[pg]
        pix = page.get_pixmap(alpha=False)
        img = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
        img.save(os.path.join(output_folder, f"page_{pg}.png"))

if __name__ == "__main__":
    pdf_file = "Lecture02.pdf"  # 输入你的 PDF 文件路径
    output_folder = "output_images_02"  # 输出图片的文件夹路径
    pdf_to_images(pdf_file, output_folder)

@will-ww
Copy link
Contributor Author

will-ww commented Apr 1, 2023

Wow, great work, many thanks~

@will-ww will-ww closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants