MCPcopy Create free account

hub / github.com/OpenDCAI/Paper2Any / functions

Functions4,061 in github.com/OpenDCAI/Paper2Any

↓ 1 callersFunctionrun_ppt2polish_workflow
Execute PPT2Polish workflow via the paper2ppt workflow adapter.
script/run_ppt2polish_cli.py:245
↓ 1 callersFunctionrun_websearch_knowledge_store_pipeline
构造 WebsearchKnowledgeState,并运行 websearch_knowledge_store 工作流。 流程: 1) 根据上方可配置参数构造 Request 对象 2) 用 Request 初始化全局 State 3) 调用
script/run_websearch_knowledge_store.py:204
↓ 1 callersFunctionrun_yolov8_seg
Run YOLOv8 instance segmentation on a single image. Parameters ---------- image_path : str Path to the input image. weig
dataflow_agent/toolkits/multimodaltool/sam_tool.py:1413
↓ 1 callersFunctionsam_branch
()
dataflow_agent/workflow/deprecated/wf_pdf2ppt_optimized.py:672
↓ 1 callersFunctionsam_branch
SAM + 背景移除 分支(串行执行)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_parallel.py:489
↓ 1 callersMethodsample_size_mean
Cochran formula for estimating a mean. sigma : population standard deviation (use pilot estimate)
dataflow_agent/storage/storage_service.py:94
↓ 1 callersMethodsample_size_proportion
Cochran formula (finite-population correction) for a proportion. N : population size p : expected proportion (worst-case
dataflow_agent/storage/storage_service.py:79
↓ 1 callersFunctionsanitizeFileName
* Sanitize filename to be compatible with Supabase Storage. * Removes or replaces characters that are not allowed in storage keys. * If the filename
frontend-workflow/src/services/fileService.ts:33
↓ 1 callersFunctionsaveCurrentSlideEdits
(layoutDescription: string, keyPoints: string[])
frontend-workflow/src/components/paper2ppt/index.tsx:4230
↓ 1 callersMethodsave_accessibility_trees
(self, filepath: Optional[str] = None)
dataflow_agent/agentroles/paper2any_agents/websearch_researcher.py:778
↓ 1 callersFunctionsave_final_state_json
将 final_state 序列化后保存到 out_dir/filename,用于调试。
fastapi_app/workflow_adapters/wa_paper2figure.py:55
↓ 1 callersFunctionsave_uploaded_files
保存论文 PDF 与评审内容。评审可为:上传文件(PDF/txt/md)或直接文本。
fastapi_app/routers/paper2rebuttal.py:167
↓ 1 callersMethodsave_versioned_image
保存新版本并更新当前指针。 Args: img_dir: 图片目录路径 page_idx: 页面索引 new_image_path: 新图片的路径 prompt: 用户
dataflow_agent/utils/version_manager.py:32
↓ 1 callersFunctionscheduleNextStage
()
frontend-workflow/src/components/paper2graph/index.tsx:479
↓ 1 callersMethodsearch_and_analyze
(self, query: str)
dataflow_agent/toolkits/rebuttal/arxiv.py:46
↓ 1 callersMethodsearch_authors
( self, req: Paper2CitationAuthorSearchRequest, )
fastapi_app/services/paper2citation_service.py:28
↓ 1 callersFunctionsearch_relevant_papers
(query: str, max_results: int = 30)
dataflow_agent/toolkits/rebuttal/arxiv.py:512
↓ 1 callersFunctionsearch_web
( provider: str, query: str, api_key: str, *, engine: str = "google", num: int = 10,
dataflow_agent/toolkits/research_tools.py:121
↓ 1 callersFunctionsendAliyunSms
(args: { phoneNumber: string; otp: string; })
supabase/functions/send-sms/index.ts:103
↓ 1 callersFunctionserpapi_search
(query: str, api_key: str, engine: str = "google", num: int = 10)
dataflow_agent/toolkits/research_tools.py:33
↓ 1 callersMethodset_feedback
设置用户反馈
dataflow_agent/trajectory/models.py:266
↓ 1 callersFunctionsetup_presentation_size
设置PPT尺寸
dataflow_agent/utils_common.py:760
↓ 1 callersFunctionsharpen
Unsharp mask style: sharpen = img*(1+a) - blur*a
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:427
↓ 1 callersFunctionshouldRenderOnTitleRight
(block: FrontendSlideBlock)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:1474
↓ 1 callersFunctionshowFileHint
()
frontend-workflow/src/components/paper2graph/UploadCard.tsx:42
↓ 1 callersFunctionsimplify_dblp_author_candidate
(hit: Dict[str, Any])
dataflow_agent/toolkits/citationtool/citation_utils.py:118
↓ 1 callersFunctionslides_inpainting_node
AI Inpainting: 填补文字 mask 区域
dataflow_agent/workflow/wf_pdf2ppt_qwenvl.py:864
↓ 1 callersFunctionslides_layout_bg_remove_node
SAM 结果背景移除
dataflow_agent/workflow/wf_pdf2ppt_qwenvl.py:794
↓ 1 callersFunctionslides_layout_bg_remove_node
(state: Paper2FigureState, sam_pages: List[Dict[str, Any]] = None)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_optimized.py:611
↓ 1 callersFunctionslides_layout_bg_remove_node
对每一页 SAM layout PNG 做背景抠图: - 输入: state.sam_pages[*].layout_items[].png_path 或传入的 sam_pages - 输出: 为每个 layout_item 写入 fg_png_pa
dataflow_agent/workflow/deprecated/wf_pdf2ppt_parallel.py:370
↓ 1 callersFunctionslides_mineru_node
(state: Paper2FigureState)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_optimized.py:567
↓ 1 callersFunctionslides_mineru_node
对每一页 PNG 使用 MinerU 做版面识别: - 输出每页的 mineru_items,包含 type / bbox(norm) / text 等
dataflow_agent/workflow/deprecated/wf_pdf2ppt_parallel.py:292
↓ 1 callersFunctionslides_ocr_node
对每一页图片用 PaddleOCR 做 OCR。 使用 asyncio.to_thread 包装同步调用,避免阻塞事件循环。
dataflow_agent/workflow/deprecated/wf_pdf2ppt_parallel.py:251
↓ 1 callersFunctionslides_sam_node
SAM3 图标分割
dataflow_agent/workflow/wf_pdf2ppt_qwenvl.py:748
↓ 1 callersFunctionslides_sam_node
(state: Paper2FigureState)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_optimized.py:604
↓ 1 callersFunctionslides_sam_node
对每一页图片运行 SAM 用于图标 / 图块分割。 使用 asyncio.to_thread 包装同步调用,避免阻塞事件循环。
dataflow_agent/workflow/deprecated/wf_pdf2ppt_parallel.py:353
↓ 1 callersFunctionslides_segment_hint_node
(state: Paper2FigureState)
dataflow_agent/workflow/wf_pdf2ppt_qwenvl.py:706
↓ 1 callersFunctionsplitTopLevelChildren
(children: MindMapTreeNode[])
frontend-workflow/src/utils/mindmapTree.ts:192
↓ 1 callersFunctionsplit_large_section
( section: Dict[str, Any], *, max_tokens: int, )
dataflow_agent/utils_markdown_sections.py:217
↓ 1 callersFunctionsplit_plain_text_to_sections
( text: str, fallback_section_tokens: int = 6_000, )
dataflow_agent/utils_markdown_sections.py:78
↓ 1 callersFunctionsplit_tables_from_text
使用 LLM 分析文本,识别并分割多个表格 Args: text: 包含一个或多个表格的文本 state: 状态对象 model_name: 使用的模型名称 Returns: [{"
dataflow_agent/agentroles/paper2any_agents/table_text_renderer.py:328
↓ 1 callersFunctionstage_input_pdf
Stage the input PDF under the workflow output dir so paper2video does not create sibling temp folders next to the original source file.
script/run_paper2video_cli.py:191
↓ 1 callersMethodstandardize
(self, font_name: str)
dataflow_agent/workflow/wf_paper2drawio_sam3.py:490
↓ 1 callersFunctionstartBeautifyCurrentSlide
( results: BeautifyResult[] | null, index: number, resultPathParam?: string, outlineDataPara
frontend-workflow/src/components/Ppt2PolishPage.tsx:1083
↓ 1 callersFunctionstoreCachedAccessUrl
(pathOrUrl: string, accessUrl: string, expiresAt?: string)
frontend-workflow/src/services/secureAssetService.ts:35
↓ 1 callersFunctionstripHash
(value: string)
frontend-workflow/src/components/paper2ppt/exportStructuredSlides.ts:24
↓ 1 callersFunctionstylize_task
(table_id: str, save_dir_path: str, chart_path: str)
dataflow_agent/workflow/wf_paper2expfigure.py:868
↓ 1 callersFunctionsvgToPngBlob
(svgMarkup: string)
frontend-workflow/src/components/MindMapPage.tsx:288
↓ 1 callersFunctionsvg_to_emf
使用 Inkscape 将 SVG 文件转换为 EMF 矢量图,返回生成的 EMF 路径。 依赖 ---- - 系统需安装 Inkscape,并且 `inkscape` 在 PATH 中可直接调用。 参数 ---- svg_path:
dataflow_agent/toolkits/multimodaltool/bg_tool.py:836
↓ 1 callersFunctionsvg_to_emf
使用 Inkscape 将 SVG 文件转换为 EMF 矢量图,返回生成的 EMF 路径。 使用 Inkscape 将 SVG 转换为 EMF 矢量图。 依赖 ---- - 系统需安装 Inkscape,并且 `inkscape` 在 PATH 中可直接调
dataflow_agent/toolkits/multimodaltool/mineru_tool.py:773
↓ 1 callersFunctionsyncBlockWithEditableField
( block: FrontendSlideBlock, field: FrontendEditableField, )
frontend-workflow/src/components/paper2ppt/index.tsx:1658
↓ 1 callersFunctionsyncCanvasContentWithEditableField
( slide: FrontendSlide, field: FrontendEditableField, )
frontend-workflow/src/components/paper2ppt/index.tsx:1643
↓ 1 callersFunctionsyncPageFromLocation
()
frontend-workflow/src/App.tsx:143
↓ 1 callersMethodsynthesize_to_bytes
同步调用 DashScope CosyVoice,返回音频 bytes(WAV/MP3 等,由 format 决定)。
dataflow_agent/toolkits/multimodaltool/providers.py:947
↓ 1 callersFunctiontalking_gen_per_slide
(model_name, input_list, project_root, save_dir, env_path, api_key: Optional[str] = None)
dataflow_agent/toolkits/p2vtool/p2v_tool.py:938
↓ 1 callersFunctiontest_basic_trajectory
测试基本的轨迹记录流程
tests/test_trajectory.py:16
↓ 1 callersFunctiontest_batch_export
测试批量导出
tests/test_trajectory.py:147
↓ 1 callersFunctiontest_feedback
测试用户反馈
tests/test_trajectory.py:181
↓ 1 callersFunctiontest_react_mode_trajectory
测试 ReAct 模式轨迹
tests/test_trajectory.py:94
↓ 1 callersFunctiontext
(key?: string)
frontend-workflow/src/components/paper2ppt/StructuredSlideCanvas.tsx:185
↓ 1 callersFunctiontoHex
(bytes: Uint8Array)
supabase/functions/send-sms/index.ts:53
↓ 1 callersMethodto_dpo_format
转换为 DPO 训练格式 Returns: {"prompt": "...", "chosen": [...], "rejected": [...]}
dataflow_agent/trajectory/models.py:363
↓ 1 callersFunctionto_serializable
递归将任意对象转成可 JSON 序列化的结构,无法处理的类型用 str 兜底。
fastapi_app/workflow_adapters/wa_paper2figure.py:42
↓ 1 callersFunctiontoggleCategory
(category: string)
frontend-workflow/src/components/AgentNodePanel.tsx:17
↓ 1 callersFunctiontoggleChip
(chipKey: ChipKey)
frontend-workflow/src/components/ImagePlaygroundPage.tsx:261
↓ 1 callersFunctiontopk_sam_items
只保留 Top-K 个 SAM 实例。 Parameters ---------- items : List[Dict[str, Any]] run_sam_auto 返回的实例列表。 k : int, optional 要
dataflow_agent/toolkits/multimodaltool/sam_tool.py:1276
↓ 1 callersFunctiontransform_sub_bbox
把子图内 bbox 映射回原图坐标系
dataflow_agent/utils_common.py:558
↓ 1 callersMethodunify_by_clustering
( self, text_blocks: List[Dict[str, Any]], vertical_threshold_ratio: float = 0.5,
dataflow_agent/workflow/wf_paper2drawio_sam3.py:342
↓ 1 callersMethodunify_by_clustering
(self, text_blocks: List[Dict[str, Any]])
dataflow_agent/workflow/wf_paper2drawio_sam3.py:551
↓ 1 callersMethodunify_by_clustering
( self, text_blocks: List[Dict[str, Any]], vertical_threshold: float = 0.8, ho
dataflow_agent/workflow/wf_paper2drawio_sam3.py:680
↓ 1 callersFunctionupdateDescription
(index: number, desc: string)
frontend-workflow/src/components/knowledge-base/UploadView.tsx:71
↓ 1 callersFunctionupdateFrontendLayoutIr
(slideIndex: number, layoutIr: FrontendSlide['layoutIr'])
frontend-workflow/src/components/paper2ppt/index.tsx:3326
↓ 1 callersFunctionupdateNodeById
( root: MindMapTreeNode, nodeId: string, patch: Partial<Pick<MindMapTreeNode, 'label' | 'summary'>>, )
frontend-workflow/src/utils/mindmapTree.ts:104
↓ 1 callersMethodupdate_state_result
(self, state: MainState, result: Dict[str, Any], pre_tool_results: Dict[str, Any])
dataflow_agent/agentroles/paper2any_agents/websearch_curator.py:662
↓ 1 callersMethodupdate_state_result
将结果写回到 state.agent_results。
dataflow_agent/agentroles/paper2any_agents/websearch_planner.py:195
↓ 1 callersFunctionuploadGeneratedResultFile
(filePath: string | null | undefined, defaultName: string)
frontend-workflow/src/components/paper2ppt/index.tsx:2758
↓ 1 callersMethodupload_asset
( self, *, result_path: str, asset_key: str, upload: UploadFile,
fastapi_app/services/paper2ppt_frontend_service.py:478
↓ 1 callersFunctionupscale_if_needed
( bgr: np.ndarray, long_side_to: int = UPSCALE_LONG_SIDE_TO, interp: int = UPSCALE_INTERP, )
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:410
↓ 1 callersFunctionusage
()
frontend-workflow/scripts/run_paper2ppt_structured_export_cli.ts:147
↓ 1 callersFunctionvalidateStructuredSlide
(slide: FrontendSlide)
frontend-workflow/src/components/paper2ppt/structuredSlideModel.ts:160
↓ 1 callersFunctionvalidate_input
Validate input PDF and return resolved path.
script/run_paper2video_cli.py:168
↓ 1 callersFunctionvalidate_input
(input_str: str, input_type: str)
script/run_paper2ppt_frontend_cli.py:83
↓ 1 callersFunctionvalidate_input
Validate input PDF file and return absolute path
script/run_paper2poster_cli.py:128
↓ 1 callersFunctionvalidate_input
Validate input and return (input_content, resolved_input_type) Returns: - For files: (absolute_path, input_type) - For text:
script/run_paper2figure_cli.py:183
↓ 1 callersFunctionvalidate_input
Validate input and return (input_content, resolved_input_type)
script/run_paper2ppt_cli.py:176
↓ 1 callersFunctionvalidate_input_file
Validate input file exists and has correct extension
script/run_ppt2polish_cli.py:133
↓ 1 callersFunctionvalidate_input_file
Validate input file exists and has correct extension
script/run_pdf2ppt_cli.py:147
↓ 1 callersFunctionvalidate_input_file
Validate input file exists and has correct extension
script/run_image2ppt_cli.py:143
↓ 1 callersFunctionvalidate_poster_dimensions
Validate poster dimensions and aspect ratio
script/run_paper2poster_cli.py:143
↓ 1 callersMethodverify_llm_connection
Verify LLM connection by sending a simple 'Hi' message.
fastapi_app/services/paper2any_service.py:69
↓ 1 callersFunctionvisit
(current: FrontendCanvasNode)
frontend-workflow/src/components/paper2ppt/index.tsx:1315
↓ 1 callersFunctionvisit
(node: FrontendCanvasNode, box: PptBox)
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:647
↓ 1 callersFunctionvisual
(key?: string)
frontend-workflow/src/components/paper2ppt/StructuredSlideCanvas.tsx:187
↓ 1 callersFunctionvlm_recognition_node
使用 VLM (ImageTextBBoxAgent) 提取文本和 bbox。 结果写入 state.vlm_pages。
dataflow_agent/workflow/wf_pdf2ppt_qwenvl.py:559
↓ 1 callersFunctionwaitForFrontendCaptureNodes
(count: number, timeoutMs: number = 6000)
frontend-workflow/src/components/paper2ppt/index.tsx:2504
↓ 1 callersFunctionwalk
(node: MindMapTreeNode, depth: number, centerY: number, parentNodeId: string)
frontend-workflow/src/utils/mindmapTree.ts:228
↓ 1 callersFunctionwalkCanvasNodes
(node: FrontendCanvasNode | undefined, output: Map<string, FrontendCanvasNode>)
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:246
↓ 1 callersFunctionwriteCachedQuota
(userId: string | null, quota: QuotaInfo)
frontend-workflow/src/services/quotaService.ts:71
FunctionAccountPage
()
frontend-workflow/src/components/AccountPage.tsx:76
FunctionAgentNodePanel
({ onDragStart }: AgentNodePanelProps)
frontend-workflow/src/components/AgentNodePanel.tsx:11
← previousnext →2,401–2,500 of 4,061, ranked by callers