Learn from Chi Bo Lin’s view

To love it, one needs to see the beauty of it, as well as its problems, only then can one pray for Taiwan’s future from the heart.

— Chi Po-lin

Chi Po-lin‘s documentary film “Beyond Beauty: Taiwan from Above (看見台灣) captures Taiwan completely in aerial cinematography and broke the Taiwan box office records for the largest opening weekend and the highest total gross of a locally produced documentary. It brings a complete different perspective of understanding the beauty of the land as well as raises awareness of environmental issues which later prompted calls on the government to amend laws and repeal Asia Cement’s mining license.


Beyond Beauty: Taiwan from Above official trailer


During the press conference of sequel to “Beyond Beauty: Taiwan from Above”, one asked Chi why he did not use drones. He pointed out it is due to the poor image quality and the monotone of the camera movement that he did not consider to make film by drones.

On June 10, 2017, Chi died in a helicopter crash in a mountainous area in Hualien County’s when the group was shooting footage for the sequel. Since using helicopters for aerial cinematography put photographer in tremendous danger, using drones with the aid of artificial intelligence might be worth a try.

We decided to start this project: learning from Chi’s view and shooting the documentary by AI.


The helicopter crashed in a mountainous area in Hualien County’s when Chi’s group was shooting footage for the sequel


Camera angle is one of the most important factor in producing scenic view. Where the camera is placed in relation to the subject and how the angle is taken can affect the way the viewer perceives the subject and invoke feelings and emotions.

Chi’s film uses different camera angles to achieve landscape videography, in which the majority of them is bird’s-eye view. It constitutes 71 precent of the angles that taking shoots of subjects such as coastlines, paddy fields and cities. This shot gives the audience a wider view and creates a spatial perspective that is rare for human’s viewpoints where objects or human seems harmless and insignificant.

The other part of the documentary consist of both high-angle views and eye-level views. High-angle views are taken when the camera is placed above the subject and lens points down while eye-level views are when the camera is looking straight on with the subject.


Composition of camera angles of “Beyond Beauty: Taiwan from Above”


Let’s look at the basic camera moves that are used in Chi’s film as well. Two main techniques used are dollying and orbiting, constitute to 31 and 26 percent, respectively. In these techniques, the camera on the helicopter flies along an object, often coastlines or field roads, and move slowly up, down or side-to-side. Sometimes the camera orbits around an object such as lighthouses or mountain tips.


Composition of camera movements of “Beyond Beauty: Taiwan from Above”


Other moves including tracking shots, pan, tilts and zoom are also applied in the film. We analyze these techniques and usages to understand how a videographer captures the beauty of our lands. These provide our system with the camera strategies and styles to create AI-powered observational documentaries.

We have started collaborations with Tainan City Government, Department of Aeronautics and Astronautics from National Cheng Kung University and GEOSAT Aerospace & Technology Inc to enable AI to shoot a documentary, and learning from “Beyond Beauty: Taiwan from Above” is just the start of it.


Feautured Photo by  總統府 / CC BY

, ,

Meet JARVIS – The Engine Behind AILabs

In Taiwan AI Labs, we are constantly teaching computers to see the world, hear the world, and feel the world so that computers can make sense of them and interact with people in exciting new ways. The process requires moving a large amount of data through various training and evaluation stages, wherein each stage consumes a substantial amount of resources to compute. In other words, the computations we perform are both CPU/GPU bound and I/O bound.

This impose a tremendous challenge in engineering such a computing environment, as conventional systems are either CPU bound or I/O bound, but rarely both.

We recognized this need and crafted our own computing environment from day one. We call it Jarvis internally, named after the system that runs everything for Iron Man. It primarily comprises a frontdoor endpoint that accepts media and control streams from the outside world, a cluster master that manages bare metal resources within the cluster, a set of streaming and routing endpoints that are capable of muxing and demuxing media streams for each computing stage, and a storage system to store and feed data to cluster members.

The core system is written in C++ with a Python adapter layer to integrate with various machine learning libraries.



The design of Jarvis emphasizes realtime processing capability. The core of Jarvis enables data streams flow between computing processors to have minimal latency, and each processing stage is engineered to achieve a required throughput per second. For a long complex procedure, we break it down into smaller sub-tasks and use Jarvis to form a computing pipeline to achieve the target throughput. We also utilize muxing and demuxing techniques to process portions of the data stream in parallel to further increase throughput without incurring too much latency. Once the computational tasks are defined, the blue-print is then handed over to cluster master to allocate underlying hardware resources and dispatch tasks to run on them. The allocation algorithm has to take special care about GPUs, as they are scarce resources that cannot be virtualized at the moment.

Altogether, Jarvis becomes a powerful yet agile platform to perform machine learning tasks. It handles huge amount of work with minimum overhead. Moreover, Jarvis can be scaled up horizontally with little effort by just adding new machines to the cluster. It suits our needs pretty well. We have re-engineered Jarvis several times in the past few months, and will continue to evolve it. Jarvis is our engine to move fast in this fast-changing AI field.


Featured image by Nathan Rupert / CC BY


AI frontdesk – improve office security and working conditions

Imagine that someone in your office serves as doorkeeper, takes care of visitors and even cares about your working conditions, 24-7? One of our missions at Ailabs.tw is to explore AI solutions to address society’s problems and improve the quality of life of people and, we have developed one AI-powered front-desk to do all of the tasks mentioned above.

Based on 2016 annual report from Taiwan MOL (Ministry of Labor), the average work hours per year of Taiwanese employee is 2106 hours. Compared with OECD stats, this number ranked No.3 in the world which is just below Mexico and Costa Rica.

Recently on 4th, December, 2017,  the first review of the Labor Standards Act revision was passed. The new version of the law will allow flexible work-time arrangements and expand monthly maximum work hours up to 300. Other major changes of the amendment includes conditionally allowing employees to work 12 days in a row and reduction of a minimum 11 hour break between shifts down to 8 hours. The ruling party plans to finish second and third-reading procedure of this revision early next year (2018), and it will put 9-million Taiwanese labors in worse working environment.To get rid off the bad reputation of “Taiwan – The Island of Overwork “, a system which will notify both employee and employer that one has been extremely over-working, and the attendance report can not easily be manipulated is needed.

In May 2017, an employee Luo Yufen from Pxmart, one of Taiwan’s major supermarket chain, died from a long time of overwork after 7 days of being in the state of coma. However, the OSHA(Occupational Safety and Health Administration) initially find no evidence of overwork after reviewing the clocking report provided by Pxmart which looks ‘normal’. It wasn’t until August, when Luo’s case are requested for further investigation, that the Luo’s real working hours before her death proves her overwork condition.

Read more

The Road to Understand Aerial Cinematography

How does AI picks out the best views and shoot an aerial documentary? At Ailabs, we’ve built a system, equipped a drone and a 360 camera, to have an eye of a videographer.

We want to enable filmmaking to achieve camera movement and tracking shot by artificial intelligence itself. We design our system to be able to pick interesting object and features such as lighthouse or coastline from a 360-degree video and create a flat, standard documentary without manual control of camera movement and angle.


The drone carries a 360-degree 4K camera and flies alongside Tainan city, Taiwan, to collect videos that are later used for post editing done by our system.


This project is inspired by Chi Po-lin‘s documentary film “Beyond Beauty: Taiwan from Above (看見台灣) which captures Taiwan completely in aerial cinematography and broke the Taiwan box office records for the largest opening weekend and the highest total gross of a locally produced documentary. Unfortunately, Chi died in a helicopter crash in a mountainous area in Hualien County’s when the group was shooting footage for the sequel.

Chi’s pointed out it is due to the poor image quality and the monotone of the camera movement that he did not consider to make film by drones. Besides, flying on helicopters for aerial cinematography put photographer in tremendous danger. For this reason, we started the “Chi Po-Lin project” using a drone, a 360 camera and our AI-powered post-editing software algorithm.

Automatic Cinematography for 360

When using a helicopter for videography, the pilot flies the route, and the videographer operates the video camera respectively. In the case of drone,  the videographer is replaced by a 360 camera and an algorithm in post-editing to determines where to focus on in the 360 images.



As in the scenario above, we installed a 360 camera on the drone to let the AI control the perspective in the 360 image and render a portion of the 360 image to create virtual camera movements such as pan, tilt, and zoom.


Algorithmically controlled perspectives from the 360 images 


A reason for the monotone of the aerial videos is that it is very difficult for a person to manipulate the controls of the drone and consider the composition details at the same time. Moreover, the conventional methods of automatic cinematography simplify the problem to aligning the camera to the center of the object of interest. So, we give the control of the camera to the AI which, unlike the existing method, takes into account the composition and the semantic flow of the scene.

360 cameras record every point of view. After the videos are collected, the AI recognizes the scenes and objects of interest encountered during the flight, selects the best angles of each moment, and automatically plans multiple sets of suitable trajectories to assist the user in editing the movie.

Automatic Color Enhancement

In order to enhance image quality, we start from color enhancement. We want our video looks as appealing and clearly as professional flim producer took. We leveraged a model which can learn color enhancement by the original input photo and high quality HDR image. The model is learned in an unsupervised way with GAN. In order to reduce model complexity and speed up training, the model is trained with low-resolution image and thus can only output low-resolution image. We extend the model to support high-resolution image by patch-based method. We divide high-resolution image to several overlapping patches and use alpha blending to stitch them. Although it is a image enhancement model, the model is stable enough that we can directly apply it on frames from video without temporal problem. The result looks more appealing than original video in color aspect. According to detail enhancement, result video have more detail than original. For example, the sky looks more clearly than original input video.

Comparison video

Final result with automatic color enhancement


– AILabs (台灣人工智慧實驗室)
– Southern Taiwan Science Park Bureau (科技部南科管理局)
– Tainan City Government (台南市政府)
– Department of Aeronautics and Astronautics, NCKU (成大航太)
– GEOSAT Aerospace & Technology Inc (經緯航太)


– Microsoft
– Nvidia
– Garmin


Featured image by YELLOW Mao. 黃毛, Photographer / CC BY