Ask Your Question

Revision history [back]

Thanks a lot for the quick reply! However, let me add a note fro beginners like me :)

When I ran the above code, I got the following error:

cannot open <openface.nn4.small2.v1.t7>

This because, after installing OpenCV for Java as explained here, you need to download the model separately, as shown here or here. Then, you need to pass the full file name for the downloaded model in:

Dnn.readNetFromTorch( [fullFileNameHere] );

click to hide/show revision 2
No.2 Revision

updated 2019-10-22 10:01:12 -0600

berak gravatar image

Thanks a lot for the quick reply! However, let me add a note fro beginners like me :)

When I ran the above code, I got the following error:

cannot open <openface.nn4.small2.v1.t7>

This because, after installing OpenCV for Java as explained here, you need to download the model separately, as shown separately from here or here. Then, you need to pass the full file name for the downloaded model in:

Dnn.readNetFromTorch( [fullFileNameHere] );

click to hide/show revision 3
No.3 Revision

updated 2019-10-22 10:01:27 -0600

berak gravatar image

Thanks a lot for the quick reply! However, let me add a note fro beginners like me :)

When I ran the above code, I got the following error:

cannot open <openface.nn4.small2.v1.t7>

This because, after installing OpenCV for Java as explained here, you need to download the model separately from here . Then, you need to pass the full file name for the downloaded model in:

Dnn.readNetFromTorch( [fullFileNameHere] );

click to hide/show revision 4
No.4 Revision

updated 2019-10-22 10:01:47 -0600

berak gravatar image

Thanks a lot for the quick reply! However, let me add a note fro beginners like me :)

When I ran the above code, I got the following error:

cannot open <openface.nn4.small2.v1.t7>

This because, after installing OpenCV for Java as explained here, you need to download the model separately from here . Then, you need to pass the full file name for the downloaded model in:

 Dnn.readNetFromTorch( [fullFileNameHere] );

);
click to hide/show revision 5
No.5 Revision

updated 2019-10-22 10:02:10 -0600

berak gravatar image

Thanks a lot for the quick reply! However, let me add a note fro beginners like me :)

When I ran the above code, I got the following error:

 cannot open <openface.nn4.small2.v1.t7>

<openface.nn4.small2.v1.t7>

This because, after installing OpenCV for Java as explained here, you need to download the model separately from here . Then, you need to pass the full file name for the downloaded model in:

 Dnn.readNetFromTorch( [fullFileNameHere] );