sudo find / -name "libopencv_core.so.3.2*"
if you can get the result: /usr/local/lib/libopencv_core.so.3.2. please follow the second step,
if not, the second step may not work.
Create a file called /etc/ld.so.conf.d/opencv.conf and write to it the path to the folder where the binary is stored
For example, I wrote /usr/local/lib/ to my opencv.conf file.
Run the command line as follows.
sudo ldconfig -v
When you finished these steps, your issue may be resolved.