是否有一个程序可以使用 OCR 从屏幕截图(重新)创建表单(使用 HTML / Swing)?
我有一组来自遗留桌面应用程序的屏幕截图,需要为网络重新开发
虽然将使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是不可能的 - 屏幕截图不包含足够的信息,例如表单验证、根据其他选项显示/隐藏的字段、工具提示等。
也就是说,您可以使用 ASP.Net MVC 之类的工具非常快速地制作表单例如:
模型:
然后在视图中:
这将根据模型生成整个表单 - 正如您所看到的,模型非常容易定义......
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:
And then in a view:
Which would generate the entire form based on the model - and as you can see the model is very easy to define...