الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشروع تخرج تقوم فكرته على عمل نظام امان لبنك

مغلق
بدأه ashrafnet في 29 مارس 2005 · 8 رد · 3,281 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

سؤال خاص الى الاخوة مبرجين السي شارب

ارجوا المساعدة العاجلة اخواني

اعمل الان مشروع تخرج تقوم فكرته على عمل نظام امان لبنك وذلك بواسطة كاميرا مراقبة لقد مشينا في الموضوع وتوصلنا الى العديد من المعادلات الرياضية عن طريق شخص حاصل على ماجستير الرياضيات قسم الاحصاء فرع الاحتمالات ولكن المشكلة كانت في اخذ صورة من الكاميرا عن طريق لغة السي شارب

فأرجوا من الاخوة المساعدة العاجلة

تحياتي

أشـــ نت ـــرف

#2

Take this dll it will help you capture pictures from webcams with the resoultion you specify

[WebMethod]
  public byte[] GrabFrame(short nQuality)
  {
 	 //Shout a picture from my webcam
 	 Camera cam = new CameraClass();

 	 byte[] picture = (byte[]) cam.GrabFrame(nQuality);

 	 //Add the hour
 	 MemoryStream ms = new MemoryStream(picture);
 	 Bitmap bmp = new Bitmap(ms);

 	 Graphics g = Graphics.FromImage(bmp);

 	 string strDate = DateTime.Now.ToLongDateString() + " - " + DateTime.Now.ToLongTimeString();

 	 g.DrawString(strDate,
                new Font(FontFamily.GenericSansSerif, 10),
                new SolidBrush(Color.Black),
                new RectangleF(1, 1, 320, 240)
    );

 	 g.DrawString(strDate,
                new Font(FontFamily.GenericSansSerif, 10),
                new SolidBrush(Color.White),
                new RectangleF(0, 0, 320, 240)
    );

 	 MemoryStream ms2 = new MemoryStream();

 	 bmp.Save(ms2, ImageFormat.Jpeg);
 	 bmp.Save(Server.MapPath("MyImage.jpeg"));
 	 return ms2.GetBuffer();
  }

CamServer.zip

تم تعديل هذه المشاركة بواسطة bashmohandes في 29 مارس 2005 في 16:12

Sr. Software Development Engineer
Hulu, LLC
My Blogs

#3

This is just a brief description of the code i sent

the code is using the dll and the class CameraClass

Then it calls a function called

GrabFrame(int desiredquality)

and then it makes a MemoryStream to save the image temporarily in it and then makes anychanges he want in this stream like adding the time and date then save the image to a file

This code is from a webservice i made before so you'll find some [webmethod] and Server.MapPath you can change this to your desired kind of application

Thanks

For any help

bashmohandes@Gmail.com

Faculty of Engineering Cairo University

Computer Engineering Department

Mohammed Hossam

Sr. Software Development Engineer
Hulu, LLC
My Blogs

#4

شكرا bashmohandes على الإجابة وبارك الله فيك و بعلمك

#5

السلام عليكم

ارجو من الأخ bashmohandes إرفاق مثال بسيط حيث يلتقط صورة ويدخلها في image

ولك جزيل الشكر

#6

اتفضل يا سيدي مثال اخر تمام

بس المشكلة انه كود بتاع WebService بس شغال

سلام

Webcamcsharp.rar

Sr. Software Development Engineer
Hulu, LLC
My Blogs

#7

سلام عليكم

شكرا لك اخي العزيز الباشمهندس

لكن بعد ازنك يا اخي ما دام هذا المثال لل web application اذا يجب ان ترفق معه ملف ال wwwroot بتاعه حتى نستطيع ان نقوم بفتحه على نسخ الدوت نت على اجهزتنا

وجزاك الله خيرا على مجهودك

#8

ايه يا عم الكلام ده

انت Copy ال Folder في ال wwroot و من ال IIS اعمل CreateApplication

و افتح الSolution من جوه ال VS.net

Sr. Software Development Engineer
Hulu, LLC
My Blogs

#9

how r u shabab

here is a simple project for vedio captureing via a webcam using DirectX.Capture.dll

the Dll's is included in the debug folder: DirectX.Capture.dll & DShowNET.dll(required for DirectX.Capture)

the secound file I attached is a documentation for using DirectX.Capture library

my_web_cam.zip

" و العجيب أن الناس دائما يفكرون في اصلاح العالم من حولهم و لا يفكرون في اصلاح انفسهم "

Windows Live Messenger

هذا الموضوع مغلق.

مواضيع مشابهة