Open a photo, or use the sample, then click Start. The subject stays sharp and the background is blurred by its distance; Blur, Depth of field and Bokeh highlights change it at once.
人像模式:像鏡頭一樣模糊背景
「人像模式」會在您的裝置上執行開放的深度模型 Depth Anything,以及 MediaPipe 的人物分割,因此照片不會被上傳。主體保持清晰,其他部分離焦點愈遠就愈模糊,就像全開光圈的相機所呈現的那樣:明亮的光點會張開成圓形或六邊形散景。 Open a photo, or use the sample, then click Start. The subject stays sharp and the background is blurred by its distance; Blur, Depth of field and Bokeh highlights change it at once.
How it works
- 開啟一張照片或使用樣本,再點「開始」。場景的深度和其中的人物會在您的裝置上找出。
- 用「模糊」設定背景有多柔,用「景深」設定主體周圍有多少範圍保持清晰。
- 挑選圓形或六邊形散景,並提高「散景高光」讓光盤更亮,然後儲存或繼續編輯。
跟隨深度的模糊
平面的模糊會讓照片看起來像被剪下來。這裡的模糊會隨距離增加:開源深度模型 Depth Anything 會估計照片每一部分有多遠,每個像素再依它與焦點的距離、超出景深的程度來模糊。MediaPipe 的人物分割會讓人物邊緣保持清晰,即使是圓弧的頭髮和肩膀,在只有深度時本來會偏軟。「對焦於主體」會把焦點放在人物上,或放在照片最近的部分;關閉後即可自行選擇距離。
像真正鏡頭的散景
模糊會在每個像素周圍聚集一圈光盤,因此燈、穿過樹葉的陽光或反光這類亮點,會張開成柔和的圓盤,呈圓形或像鏡頭光圈葉片的六邊形。「散景高光」設定它們有多亮。被模糊的前景會蓋住後方的景物,就像在相機裡一樣。模型每張照片只執行一次,因此每次調整都是即時的。
Frequently asked questions
How do I blur the background of a photo like portrait mode?
Open the photo and click Start. The depth of the scene and the people in it are found on your device; the subject stays sharp and the background is blurred more the farther away it is. Set Blur, Depth of field and Bokeh highlights, then save. In the editor it is under AI → Background → Portrait mode.
What is the difference with Blur background?
Blur background blurs everything behind the subject by the same amount. Portrait mode uses a depth map, so the blur grows with the distance, things in front of the subject can be blurred too, and bright points become bokeh discs, as with a real lens.
What does Depth of field do?
It sets how much depth around the focus stays sharp. Low values keep only the subject sharp, as with a wide-open lens; higher values keep more of the scene in focus and only blur what is far away.
Can I choose what is in focus?
Yes. Focus on subject puts the focus on the person, or on the nearest part of the photo when there is no person. Turn it off and set Focus distance from far (0) to near (100) to focus on another part of the scene. Blur foreground decides whether what is nearer than the focus is blurred too.
Which AI models are used?
Depth Anything V2 Small (Apache-2.0) estimates the depth, the same model as 3D photo, and MediaPipe's Selfie Segmenter (Apache-2.0) finds the people. Both run in your browser with WebGPU or WebAssembly and are downloaded once.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
前往編輯器