עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

עזרה ב- #EMGU C - תקוע באופן מוחלט וזקוק לכל עזרה

Featured Replies

פורסם

הי,

אני קצת חדש בעולם התכנות ויתכן שהבעיה שלי בסיסית מידי ולכן לא מצליח למצוא לה פתרון בשום מקום.

אני לומד EMGU עבור #C (מערכת לניתוח תמונה).

אני מנסה להריץ קוד מאד מאד פשוט שמגדיר מטריצה ומציג אותה:


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;


namespace matrix_take_5_with_x64_2._4._2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


private void button1_Click(object sender, EventArgs e)
{
Matrix<byte> matrix1 = new Matrix<byte>(1,2);
matrixBox1.Matrix = matrix1;


}
}
}

כשאני מריץ את הקוד ולוחץ על הכפתור מתקבלת השגיאה הבאה:

The type initializer for 'Emgu.CV.CvInvoke' threw an exception

בדקתי בכל מדריך אפשרי וכל פורום שגוגל יכול להציע ללא הועיל.

בבדיקה ניסיתי להריץ גרסאות של הקוד בעברו 32 ביט ו- 64, בגרסאות EMGU 2.4.2 ו- 2.9, הרצתי על VS 2013 ו- 2010 אך ללא הועיל.

אני עובד על 8.1 64 ביט ויתכן שזה מקור הבעיה (שהיא כאמור בעיה מוכרת).

אשמח מאד אם יש לפורום הזה (שעד היום לא איכזב בשום דבר...:character0009:)

תודה!

פורסם
  • מחבר

כבר ניסיתי את המדריך הזה, עברתי על כולו ועל דומים לו... :-(

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.