用于在Microsoft访问中使用相机在表单上拍照的Visual Basic代码 [英] Visual Basic code to take a picture with a camera on form within Microsoft access

查看:54
本文介绍了用于在Microsoft访问中使用相机在表单上拍照的Visual Basic代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

寻求帮助,在访问时对表单进行编码,点击按钮即可拍照。



想要显示相机正在查看的内容,然后单击按钮告诉相机拍照。



还有更多吗?请联系或回复

looking for help with coding a form in access to take a picture with button click.

want to have form displaying what camera is viewing and click button to tell camera to snap a picture.

have more ?'s to ask please contact or respond

推荐答案

Lance Wilson写道:
Lance Wilson wrote:

.NET。现在从哪里开始?

.NET. Now where to start?

我很高兴您正在考虑继续使用跛脚来支持它。



首先,数据库。您将需要使用ADO.NET:

http://en.wikipedia.org/wiki /ADO.NET [ ^ ],

http://msdn.microsoft.com/en-us/library/aa286484 .aspx [ ^ ] 。



这是一篇非常好,简短明了的CodeProject文章,可以帮助你立即开始:为初学者使用ADO.NET [ ^ ]。



我介意:我选择了很多人中的一个。我真的认为这对初学者来说是最有用的。



现在,您可能需要或不需要查看Access的使用。它有两个主要问题:1)专有,2)甚至缺乏基本的东西作为客户端 - 服务器模型: http:/ /en.wikipedia.org/wiki/Client-server [ ^ ]。



Microsoft Access是基于文件服务器的,一个巨大的限制: http://en.wikipedia.org/wiki/Microsoft_access#Features [ ^ ]。



我真的不认识任何认真对待Microsoft Access的人。它从来就不是像科学/工程这样的软件产品。它总是设计用于办公室居民临时使用(所谓的办公室浮游生物;对不起贬义术语,但我从现代民俗中借用它:-)),就像所有的Microsoft Office一样。即使它在技术上用于解决相当复杂的问题,但它也不会使开发代码成为一项很好的投资。相反,你可以选择一些体面的产品,包括开源产品,有些产品甚至可以更小,但更严重。请参阅:

http://en.wikipedia.org/wiki/Comparison_of_databases [< a href =http://en.wikipedia.org/wiki/Comparison_of_databasestarget =_ blanktitle =New Window> ^ ]。



许多人使用开源或专有免费软件:SQLite,mySQL或Microsoft SQL Server Express,但它实际上取决于产品的目标。用于不同数据库提供程序的ADO.NET API略有不同,但它们非常相似,从一个到另一个的迁移通常非常简单,或者您甚至可以创建自己的抽象层。



现在,还有什么?相机预览和预览拍照?



基本上,它取决于用户界面。您可以选择 System.Windows.Forms 和WPF。您可以找到这两个库中每个库的完整代码。这里: http://www.codeproject.com/search.aspx?q=Web+camera+%28%22.NET%22+OR+%22VB.NET%22+OR+%22C% 23%22%29 +& doctypeid = 1 [ ^ ]。



首先,考虑C#代码示例,而不仅仅是VB.NET。 1)C#项目通常更好,更经常由更熟练的开发人员编写; 2)用C#编写的汇编可以在VB.NET项目中使用,完全没有障碍; 3)C#和VB.NET项目可以自动完美地翻译成另一个(请参阅我的过去答案:代码解释,C#到VB.NET [ ^ ])。



一台机器您应该通过CodeProject成员 Andrew Kirillov 更好地了解AForge.NET:

< a href =http://en.wikipedia.org/wiki/AForge.NET> http://en.wikipedia.org/wiki/AForge.NET [ ^ ],

http://www.aforgenet.com/ [ ^ ],

请参阅他关于该主题的CodeProject文章: C#中的图像处理实验室 [ ^ ]。



祝你好运,

-SA

I'm very happy that you are considering moving forward favoring it over using the lame.

First of all, databases. You will need to use ADO.NET:
http://en.wikipedia.org/wiki/ADO.NET[^],
http://msdn.microsoft.com/en-us/library/aa286484.aspx[^].

This is a very good, short and clear CodeProject article which should help you to get started in no time: Using ADO.NET for beginners[^].

I mind it: I selected one from the many. I really think this is one is the most useful for starters.

Now, you may or may not need to review the use of Access. It has two major problems: 1) proprietary, 2) lack of even such as basic thing as client-server model: http://en.wikipedia.org/wiki/Client-server[^].

Microsoft Access is file-server based, a huge limitation: http://en.wikipedia.org/wiki/Microsoft_access#Features[^].

I don't really know anyone who take Microsoft Access seriously. It was never a software product for anything like science/engineering. It was always something designed for ad-hoc use by office dwellers (so called "office plankton"; sorry for pejorative terminology, but I borrowed it from modern folklore :-)), like all Microsoft Office. Even though it technically be used for solving quite complex problems, it would not make developing code for it a good investment. Instead, you can choose for a number of decent products, including open-source one, and some can be even less bulky yet much more serious. Please see:
http://en.wikipedia.org/wiki/Comparison_of_databases[^].

Many use something like open source or proprietary freeware: SQLite, mySQL or Microsoft SQL Server Express, but it really depends on the goals of your products. ADO.NET APIs for different database providers are slightly different, but they are so similar that migration from one to another is usually quite click, or you even can create your own abstraction layer.

Now, what else? Camera preview and taking pictures out of preview?

Basically, it depends on UI. You can choose from System.Windows.Forms and WPF. You can find complete code for each of these two libraries. Here: http://www.codeproject.com/search.aspx?q=Web+camera+%28%22.NET%22+OR+%22VB.NET%22+OR+%22C%23%22%29+&doctypeid=1[^].

First of all, consider C# code samples, not just VB.NET. 1) C# projects are generally better, more often written by more skilled developers; 2) assembly written in C# can be used in VB.NET project with no barriers at all; 3) C# and VB.NET project can be automatically and perfectly translated one into another (please see my past answer: Code Interpretation, C# to VB.NET[^]).

One machine vision product you should better know AForge.NET by CodeProject member Andrew Kirillov:
http://en.wikipedia.org/wiki/AForge.NET[^],
http://www.aforgenet.com/[^],
see his CodeProject article on the topic: Image Processing Lab in C#[^].

Good luck,

—SA


这篇关于用于在Microsoft访问中使用相机在表单上拍照的Visual Basic代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆