Skip to content

Instantly share code, notes, and snippets.

View eciavatta's full-sized avatar
🏳️‍🌈

Emiliano Ciavatta eciavatta

🏳️‍🌈
View GitHub Profile

Keybase proof

I hereby claim:

  • I am eciavatta on github.
  • I am eciavatta (https://keybase.io/eciavatta) on keybase.
  • I have a public key ASCAfrd9Tcl-0ItCs7FeIHCtzey9WwaJKO5I61n-PeplAAo

To claim this, I am signing this object:

Use Emgu CV, the OpenCV wrapper, in Ubuntu 18

The version of the compiled shared library is 3.4.1. The wrapper is compiled without GTK+ 3.0, therefore all the features of OpenCV that use this graphic library are not working. This is due to the fact that the Windows Forms in Mono have GTK+ 2 as dependency, which is not compatible with the third version.

Installation

  1. Download the compiled version of Emgu CV shared library from https://www.dropbox.com/s/6h39g9bq2bl3rxj/libcvextern-3.4.1.zip?dl=0
  2. Extract the archive and put libcvextern.so in the /usr/lib directory
  3. Set root as the owner of the library with sudo chown root:root /usr/lib/libcvextern.so (Optional)

Usage

object ExamsManagerTest extends App {
trait ExamsManager {
def createNewCall(call: String): Unit
def addStudentResult(call: String, student: String, result: ExamResult): Unit
def getAllStudentsFromCall(call: String): Set[String]
def getEvaluationsMapFromCall(call: String): Map[String, Int]
import org.scalatest.Matchers._
import org.scalatest._
import pps.lab05.mysolution.ExamsManagerTest._
import pps.lab05.mysolution.TestExamsManager._
class TestExamsManager extends FlatSpec with ExamResultsBasicBehavior with ExamManagerBasicBehaviour
object TestExamsManager {
trait ExamResultsBasicBehavior extends FlatSpec {