The photoanalysisd features will never stop when Photos is opened. While it is still running, whether in the foreground or background, the CPU is being utilized. You can manually stop the photoanalysisd programme from running if you don't desire to undergo the deactivating process.