Total Pageviews

Monday, 29 July 2013

Clipping Magic – 简单易用的在线抠图工具

抠图是一个非常有技术含量的东西,对于大部分人来说,这都是一个棘手的问题,但如果你使用了Clipping Magic这个在线工具,那么抠图就变得小菜一碟了。只需要在图片上进行简单的涂抹,就可以移除不想要的部分哦。

Clipping Magic这个在线工具基于html5技术,所以你必须要在支持html5技术的浏览器中使用它,推荐firefox或Chrome。

如何使用Clipping Magic进行抠图:

1、打开这个在线工具的网站,点击网页中的“choose file”按钮,选择那张需要进行抠图的图片。


2、等待上传完毕,就会看到操作工具栏和2张图片。左边那张是原始图片,右边那张则可以用来预览处理后的效果。


3、点击工具栏中的“-”号,在左侧原始图片中不需要的地方进行涂抹,点击“+”号,在原始图片中需要保留的地方进行涂抹。

这样一来,你就可以完成抠图了。非常简单吧。

如果你上传的图片比较复杂,那么必须涂抹尽可能多的地方才行,只有这样,保留的部分才会比较的精细。

而善用工具栏中的放大/缩小、撤销、橡皮檫,还能够起到事半功倍的效果。

Clipping Magic官网:http://clippingmagic.com/
------------------------
 
类似的网站:
https://picwish.com/remove-background, 
https://picwish.cn/remove-background
(提供智能在线抠图、去除图片水印、无损放大图片、在线压缩图片、在线裁剪等功能,让工作更加高效。所有对图片创作有需求、希望节省时间的小伙伴,建议收藏查看。

https://picwish.cn

免费在线抠图

需要的图片素材背景杂乱?想将某一部分元素区分出来有点难?不怕,佐糖提供 “在线抠图” 工具,支持一键移除图片背景,抠出你需要的部分!
 
免费去除水印

图片有品牌水印或 logo 怎么办?完美的图片却有少许污渍?不怕,佐糖支持将水印或污渍处理干净!

点击打开佐糖在线移除水印,点击 “在线去除水印”,上传图片,然后选择涂抹水印区域,等待处理后,下载图片即可。

优点:
① 轻松移除图片上的多余物体,水印、LOGO、污渍等均可轻松操作;
② 有笔刷、框选、套索三种工具可用于选择需要去除的部位,操作适应性强。

免费无损放大

有时下载图片太小太模糊,如何在放大图片的同时并增强清晰度?佐糖提供的在线无损放大功能,可以实现!

打开佐糖在线无损放大,上传图片,选择放大倍数,等待几秒即可得到一张满意的图片。

优点:
① 支持将分辨率扩大 2 倍、3 倍、4 倍,模糊照片变清晰;
② AI 超清放大,优化图像纹理细节,保持图像质量,还原更清晰真实的图像。

免费在线压缩

图片太大不利输送?图片缩小同时质量和清晰度也变差了?不怕,佐糖让你的图如你所愿。

点击打开佐糖在线压缩,点击 “在线压缩图片”,上传图片,下载图片。

优点:
① 支持 3 种压缩设置:缩小优先、普通压缩、清晰优先;
② 自定义输出格式,可保持原格式或转存为 JPG。

佐糖网站除了提供在线抠图、去水印、无损放大、压缩外,还提供裁剪等功能。

佐糖,一款能让当代打工人,不管是写方案、做海报还是画 PPT,能精准、快速、稳定、智能地完成高品质处理的图片编辑神器.)

https://photoscissors.com/
https://www.slazzer.com/
https://removal.ai/
https://www.fotor.com/features/background-remover
https://www.adobe.com/express/feature/image/remove-background
https://www.photoroom.com/background-remover
https://www.erase.bg/
https://img.logosc.cn/remove-bg
https://www.gaoding.com/koutu
https://bgeraser.com  (通过 ai 算法将上传的图片自动的处理为去除背景的图片,经过测试,准确率不错。游客文件限制:小于 2MB;宽度 × 高度:小于 800×800;扩展名支持:.jpg, .jpeg, .png。登录用户支持 2000×2000分辨率的图像。)
https://photokit.com/
-----------------------------------------
 
 小伙觉得国外抠图工具太弱鸡,自己开发免费「智能AI抠图」,几秒搞定!aipix.net

说到图片抠图,雷锋哥刚接触「PhotoShop」是 6.0 的版本,那会不像现在有各种抠图方法,都是用钢笔、套索、橡皮擦等工具一点一点描出来,非常吃力,复杂点的图(如毛发类)眼睛都要看花了,到后来的版本开始有大佬用通道、蒙版等方法来抠图。

随着技术的发展,现在抠图比较容易了,新版「PhotoShop」加入了智能识别功能,市面上也有非常多的傻瓜抠图工具可以选择,新手也很容易上手使用。

现在还流行起了AI抠图,只要上传图片,自动识别帮你扣,如之前推荐过的「Remove.bg」AI抠图,如果你有大批量图片要扣,那真的可以节省你非常多时间。

AI抠图对算法非常重要,最近有个小伙(大佬)表示国外的AI抠图其实没有国内的好,他自己开发的这款「AIpix」AI抠图,只用了几百张图片训练算法,识别类型更丰富,边缘细节更精细,处理效果秒了国外付费的AI抠图项目。

AIpix介绍

「AIpix」目前完全免费、无广告、无需登录,只要打开网页上传图片就可以自动抠图,同时提供了简易的在线编辑功能。接下来我们就测试下效果如何吧。

用「AIpix」打开照片后,点击 "AI抠图" 按钮,等几十秒就能自动抠完成,使用背景色填充可以看到边缘处理的还是不错的。

通常透明物体抠图比较难处理透明的区域,而「AIpix」自动AI抠图识别出来的透明区域效果虽然不完美,但还是挺不错的了。

图片主体颜色对比度越大「AIpix」识别抠出来的图效果越好,相反就会Emmmm……如果你会PS技术,也可以后期自己再修下图。

对于扣好的图,可以在线进行编辑,如拼接、裁剪、变换、绘画、调整大小,添加文字、形状、贴图、边框、圆角,以及图片滤镜功能。

总结

虽然AI抠图目前不能100%完美抠出图片,但随着AI算法训练,会越来越强大,如果你不会抠图技术,那么这个「AIpix」绝对值得加入收藏夹,只需要动动鼠标,几秒钟就能完成一项抠图壮举。

官方网站:https://aipix.net
------------------------------------------
 
相关帖子:
https://briteming.blogspot.com/2023/04/removebg.html
https://briteming.blogspot.com/2021/10/backgroundremover.html





乔布斯懂技术吗?


iPhone 5和IOS 6的发布让苹果再一次站到了舆论的风口浪尖,”没有乔布斯,苹果还行不行“这一问题成了大众关注的焦点。但在大家盘点乔布斯留给世界的遗产时,往往更多的 讨论乔布斯的理想主义、完美主义以及无可匹敌的创新能力、设计品味和营销能力,而很少提及乔布斯的技术能力,那么,乔布斯究竟懂不懂技术呢?

认为乔布斯不懂技术是对他最大的误解。
诚然,乔布斯不是斯蒂芬·沃兹尼亚克、比尔·盖茨、拉里·佩奇、马克·扎克伯格这样的技术天才,但他却从另外一个维度展示了”懂技术“的含义,可以看以下几个例子:
  1. 1987年乔布斯被苹果扫地出门独自创办NeXT时,在几乎所有核心的技术上,他都做出了最优的选择,如操作系统选择Unix作为底 层,开发语言选择了当时无人问津的Objective-C、浏览器内核选择了webkit……,尽管NeXT并不成功,但这些技术却随乔布斯一起回到苹 果,成为了Mac、iPhone、iPad、IOS等最关键的技术基础,事实上,乔布斯在80年代末期就奠定了苹果在21世纪辉煌。可以说乔布斯不仅最敏 锐的技术辨别能力,而且这种辨别能力远远超越了同时代的其他人;
  2. 施乐公司的帕拉奥多研究中心早在70年代初期就开发出了计算机图形界面,但由于施乐对此项技术不敢兴趣,图形界面也就一直停留在实验阶 段。而乔布斯在到施乐参观后,便立刻组织团队将图形界面商品化、工业化,于1983年发布了世界上第一款搭载图形界面的个人电脑Apple Lisa,而1984年发布的麦金塔更是把个人电脑代入了图形界面时代(而微软成熟的图形操作系统Windows 3.x直到1990年才发布),可以说乔布斯不仅有敏锐的技术判断力,更有超凡的把技术商品化的能力;
  3. 和同类产品相比,苹果的产品往往不是功能最多的(经常是最少的),乔布斯的一大特点是善于做减法,不完善的功能他宁可不要,不完善的产 品他宁可放在实验室中打磨,最著名例子如iPad,iPad项目启动比iPhone早了两年,但推出却比iPhone晚了三年;另一个例子是液态金属,乔 布斯早在几年前就收购了这项技术,但至今未见到它的实际运用,可以说乔布斯不仅有敏锐的技术眼光,也有足够的等待技术成熟的耐性,他是真正了解技术发展规 律的人;
  4. 乔布斯认为用户只需要关注于产品的使用,其他的交给苹果就可以,因此苹果没有复杂的产品线,苹果的产品也是所有同类产品(无论时电脑、 手机、平板、MP3播放器等)中学习成本最低的,而苹果的产品说明书、网站(甚至包括技术文档)、乔布斯的演讲都从不使用复杂的专业术语。但当我们周遭充 斥着无数满嘴技术术语、复杂概念却讲不清楚任何问题的人时,可以说乔布斯的简单,恰恰体现他对技术极度深刻理解,他知道要给用户什么(不是用户要什么), 更知道怎么给。
乔布斯不是杰出的工程师,也非顶级黑客,但他却完美地诠释了产品经理、销售总监、CEO应该具备的技术能力——技术辨别能力、对技术发展趋势的预见能力,技术商业化的能力和对技术(产品)的解释说明能力。他是真正懂技术的少数人.

一些linux os的vmware虚拟机下载

http://linhost.info/downloads/

SPLIT FILES WITH SPLIT IN LINUX


Split is a useful Linux command used to split files into chunks of various sizes. The Split command is a straight forward utility all you do is specify the target size of each chunk in bytes (-b) followed by the name of the file to be split.

split -b 200m -d ubuntu-12.04.2-server-amd64.iso

The 657MB Ubuntu ISO was split into four chunks. Notice the incremental numbering.

x00  x01  x02  x03

To join all the files back together we use another utility, cat will look for all files starting with X*, regroup them, and output the results in to the file ubuntu-12.04.2-server-amd64.iso.

cat x* > ubuntu-12.04.2-server-amd64.iso

Split is a simple utility that can split files of any size into more manageable chunks. I regularly use split when I am forced to download files over unreliable connections and with no possibility of transfering with Rsync.

Reference
http://linux.die.net/man/1/split


from http://linhost.info/2013/07/how-to-split-files-with-split-in-linux/

change I/O scheduler in Linux

为什么可能会去修改Linux I/O Scheduler (elevator)?以及什么是I/O Scheduler,应该如何为数据库系统选择合适的I/O Scheduler?可以参看以下文章。
那么如果我们确认要修改I/O scheduler,该如何进行? 参考 – How to change default I/O scheduler?
大体上来说就是,比如像修改I/O scheduler为dealine:
  1. 在RHEL4/OEL4中,修改/boot/grub/grub.conf文件,添加elevator=deadline,重启生效,比如:
    title Red Hat Enterprise Linux Server (2.6.18-8.el5)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/vg0/lv0 elevator=deadline
    initrd /initrd-2.6.18-8.el5.img
  2. 在RHEL5/OEL5中,可以针对每块磁盘制定I/O Scheduler,修改完毕立刻生效,比如:
    --当前是是noop
    # cat /sys/block/sda1/queue/scheduler 
    [noop] anticipatory deadline cfq
    --修改为deadline
    # echo 'deadline'>/sys/block/sda1/queue/scheduler 
    --立刻生效
    # cat /sys/block/sda1/queue/scheduler 
    noop anticipatory [deadline] cfq

install X Window System in CentOS vps

下载精简的CentOS 5.2 Server VMWare Image,大小只有318MB。
使用XManager远程连入,会碰到这样的报错信息。

但是实际上ssh服务的X11 Forwarding是已经开启的。
[root@localhost ssh]# cat /etc/ssh/sshd_config | grep X11Forwarding
#X11Forwarding no
X11Forwarding yes
真正的错误原因是这份安装中不包含X Window System,这对于之后需要安装Oracle软件可能会造成困惑。
通过yum工具可以简单的安装X Window System,当然首先要保证该系统可以连上互联网。
yum groupinstall "X Window System"
安装完X Window System就可以通过XManager连入了,但是有必要修改一下Xstart中的执行命令,默认的xterm路径并不对。

xterm一旦可以使用,就已经可以使用runInstaller启动图形界面安装Oracle了。
如果要在服务器上使用熟悉的GUI,比如GNOME等,可以同样使用yum。
如果选用KDE,那么:
yum groupinstall "KDE (K Desktop Environment)"
如果选用GNOME,那么:
yum groupinstall "GNOME Desktop Environment"
如果选用XFCE,那么:
yum groupinstall "XFCE-4.4"

Using VNC to Remote Control Linux from Mac

从Mac OS X中远程控制Linux非常简单,在Mac中无需安装任何软件,当然Linux  server需要安装VNC服务。
环境概述:
Linux:Oracle Enterprise Linux 5.4
Mac:Mac OS X Lion(实际上Snow Leopard或者Leopard应该都是可以的)
VNC Server:Real VNC Free Edition
1. 在OEL中安装Real VNC Server
rpm -Uvh vnc-4_1_3-x86_linux.rpm
2. link X11字体文件位置,否则VNC启动会报错
# cd /usr/X11R6/lib
# ln -s /usr/share/X11 X11
# ls -l
total 4
lrwxrwxrwx 1 root root   14 Sep  5 18:10 X11 -> /usr/share/X11
drwxr-xr-x 3 root root 4096 Aug 31 15:46 modules
如果不执行以上命令,可能在启动VNC以后,在log文件中会看到如下报错:
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
 
Fatal server error:
could not open default font 'fixed'
xsetroot:  unable to open display 'hpserver:1'
vncconfig: unable to open display "hpserver:1"
xterm Xt error: Can't open display: hpserver:1
twm:  unable to open display "hpserver:1"
2. 启动VNC,可以用任意用户启动VNC,建议不要使用root
$ vncserver
 
New 'hpserver:1 (kamus)' desktop is hpserver:1
 
Starting applications specified in /home/kamus/.vnc/xstartup
Log file is /home/kamus/.vnc/hpserver:1.log
3. 检查vnc log文件,确认vnc监听的端口
vi /home/kamus/.vnc/hpserver:1.log
可以在log文件中看到如下字样,这表示通过RFB协议访问VNC服务器应该指向5901,而通过http协议访问则指向5801。
vncext:      Listening for VNC connections on port 5901
vncext:      Listening for HTTP connections on port 5801
4. 确认VNC已经正常启动,注意在log文件中可能存在warning或者报错,我们通过检查端口来确认VNC是否正常启动。
# lsof|grep 5901|grep vnc
Xvnc      20656     kamus    3u     IPv4     206853                  TCP *:5901 (LISTEN)
如果上述命令,没有返回值,则表明VNC没有成功启动。
5. 用Mac连接VNC
Cmd+K快捷键或者Finder->Go->Connect to Server,打开如下界面,输入:vnc://server-ip:port,port就是上面第三步检查的通过RFB协议访问VNC服务器的端口,通常为590x。

但是默认启动的VNC界面是比较简陋的,如下图这样。当然,也完全可以使用。

6. 如果我们想在VNC中使用gnome界面,那么需要修改一下启动vnc的脚本。该脚本通常位于启动VNC的用户Home下的.vnc目录中,也就是跟log文件在一个目录下,文件名为xstartup。
$ vi ~/.vnc/xstartup
添加如下行。
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
修改完毕以后,整个xstartup脚本如下所示。
#!/bin/sh
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
 
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
然后停止VNC,再重新启动。
$ vncserver -kill :1
Killing Xvnc process ID 21210
$ vncserver
 
New 'hpserver:1 (kamus)' desktop is hpserver:1
 
Starting applications specified in /home/kamus/.vnc/xstartup
Log file is /home/kamus/.vnc/hpserver:1.log
7. 再次从Mac中连接VNC,就可以看到美观的gnome界面了。

如何停止vncserver。
[orat0@hpserver2 ~]$ vncserver -list
 
TigerVNC server sessions:
 
X DISPLAY # PROCESS ID
:1  701
[orat0@hpserver2 ~]$ 
[orat0@hpserver2 ~]$ 
[orat0@hpserver2 ~]$ vncserver -kill :1
Killing Xvnc process ID 701
------------------------------------------- 
参考文章:
How To Setup Linux VNC Server In 3 Minutes

VNC server works similar to Telnet or SSH daemon, except that it allows VNC clients running on diverse OS platforms to remotely access Linux Desktop Manager of the server itself, rather than the TTY text-based console!

As such, most of Windows-to-Linux users prefer using VNC server than SSH daemon, who are generally favor on the vivid Desktop Manager (either KDE or Gnome) than the cold black-and-white TTY console!
For the newbie (as myself), here is my another 3-minute Linux guide about How to setup VNC server in Red Hat Enterprise Linux?

Though this Linux-VNC guide is tested on Redhat Enterprise Linux 4, it served the general guide of installing VNC in Linux distributions.

  1. Locate the vnc-server-4.0-8.1.rpm package from the Red Hat Linux installation CD or download the latest free version of VNC server from Real VNC.
     
  2. Install the rpm package of VNC server:
    rpm -Uvh vnc-server-4.0-8.1.rpm
     
  3. VNC server is using different set of login authentication than the Linux /etc/passwd. Meaning that, you have to create VNC login password for individual Linux login accounts who are granted remote access with VNC client.
    To create VNC login password, just execute vncpasswd command and enter a valid password twice as usual.
     
  4. Unlike VNC server for Windows, each user account can run more than one VNC servers in Linux.
    To start an instance of VNC server, just execute vncserver command, which will create the $HOME/.vnc directory with VNC default startup scripts inside (if $HOME/.vnc is not currently exists).
     
  5. The vncserver command will startup a VNC server that open 3 next available TCP/IP port, starting from 5801, 5901, and 6001 respectively.
    Port 5801 is for VNC client connection over HTTP protocol, port 5901 is for VNC client connection over RFB protocol, and port 6001 is to allows X applications to connect to the VNC server. The lsof or netstat command will able to show the network port opened by Xvnc server.

    By executing vncserver for the second time or execute the vncserver :2 command, this will startup VNC server that bind and listen to port 5802, 5902, and 6002 respectively.

    To connect to Linux VNC server over HTTP protocol, just type walkernews.net:5801 (replace walkernews.net with your VNC server IP/hostname) at any javascripts-enabled web browser, such as Mozilla Firefox, Opera, or Internet Explorer.

    To connect to Linux VNC server over RFB protocol, just type walkernews.net:5901 at the VNC client.
     
  6. To kill the VNC server in Linux, just execute vncserver -kill :1 will kill the first VNC server that bind and listen to port 5801, 5901, and 6001. The vncserver -kill :2 will kill the second VNC server, and so on.

How to get KDE or Gnome Desktop Manager running in Linux VNC server?

Don’t worry, it’s just a 3-seconds Linux trick! Edit the default VNC server startup scripts $HOME/.vnc/xstartup and un-remark the two “critical” lines, as per the scripts suggestion:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

Isn’t easy to setup and configure Real VNC in Linux, particularly with Red Hat Linux?