是否有一个程序可以使用 OCR 从屏幕截图(重新)创建表单(使用 HTML / Swing)?

发布于 2024-10-08 03:41:29 字数 250 浏览 5 评论 0原文

我有一组来自遗留桌面应用程序的屏幕截图,需要为网络重新开发

虽然将使用 HTML,但最终结果将具有几乎相同的布局,以及

我想知道的相同字段,就像 OCR 可以检测扫描文档的文本、表格甚至表单元素,是否有任何产品可以拍摄(本质上非常准确和干净的)屏幕截图并创建 HTML,将文本字段、下拉列表、复选框、单选按钮和标签放在与源截图形式?我知道它在技术上可行,而且可以相当准确,但找不到一个

涉足图像识别超出了我目前的技能范围,否则我会尝试一下

I have a set of screenshots from a legacy Desktop application that needs to be redeveloped for the web

Although HTML will be used, the end result would have almost the same layout, and same fieds

I was wondering, just like OCR can detect a scanned document's text, tables and even form elements, is there any product that can take a (very accurate and clean by nature) screenshot and create the HTML that will put text fields, drop downs, checkboxes, radio buttons and labels in the same layout as the source screenshot form? I know its techncally feasible, and can be quite accurate, but couldn't find one

It is beyond my current skills to venture into image recognition, otherwise I would have given it a shot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯然 2024-10-15 03:41:29

这是不可能的 - 屏幕截图不包含足够的信息,例如表单验证、根据其他选项显示/隐藏的字段、工具提示等。

也就是说,您可以使用 ASP.Net MVC 之类的工具非常快速地制作表单例如:

模型:

Public Class MyFormModel
    <Required()>
    Property Username as string

    <Required()>
    Property Password as string

    Property DOB as DateTime

End Class

然后在视图中:

<%: html.EditForModel() %>

这将根据模型生成整个表单 - 正如您所看到的,模型非常容易定义......

This is not going to be possible - screenshots do not include enough information eg form validation, fields which are shown/hidden based on other options, tooltips, etc.

That said, you can make a form VERY rapidly using something like ASP.Net MVC eg:

Model:

Public Class MyFormModel
    <Required()>
    Property Username as string

    <Required()>
    Property Password as string

    Property DOB as DateTime

End Class

And then in a view:

<%: html.EditForModel() %>

Which would generate the entire form based on the model - and as you can see the model is very easy to define...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文