# 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:

 2 No.2 Revision berak 29468 ●4 ●75 ●291

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:

 3 No.3 Revision berak 29468 ●4 ●75 ●291

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:

 4 No.4 Revision berak 29468 ●4 ●75 ●291

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] ););

 5 No.5 Revision berak 29468 ●4 ●75 ●291

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] );