Font Size: a A A

Design And Research Of Intelligent Camera Components Based On Flutter Platform

Posted on:2024-08-26Degree:MasterType:Thesis
Country:ChinaCandidate:W Y LvFull Text:PDF
GTID:2568306941988619Subject:Electronic Science and Technology
Abstract/Summary:PDF Full Text Request
As the Internet enters the era of short videos,users’ demand and dependence on camera applications have also increased.Flutter is currently the hottest mobile cross platform development framework with a good development ecosystem.In the Flutter development mode,when camera capabilities are needed,it is necessary to rely on camera components to adapt to each end.In order to meet the camera function requirements of Flutter developers,this article has designed and implemented a new solution for the Android platform to meet the camera function usage requirements of developers in the short video era.This article designs and implements a smart camera component on the Flutter platform.Compared to the official camera component,this component designs a new camera implementation framework based on the Flutter&Android Native layer,and the camera components implemented under this framework have been improved in operational efficiency and scalability.At the same time,in order to make the framework feasible,this article studies and optimizes the communication mechanism between the Flutter layer and the Android Native layer.Based on the Dart FFI capability,it implements the message channel function instead of the PlatformChannel,which improves the efficiency of component method calls.In order to manage message result objects and Java objects in the Android layer during the communication process,this article has studied and optimized these object management processes,greatly improving the efficiency of component development.Finally,based on the above framework,this article designs and implements a camera module,a special effects module,and a coding module.The special effects module supports access to the deep learning model and OpenGL special effects,while the coding module supports realtime processing of data.The three modules complete the entire process of data acquisition,processing,and encoding and exporting.This article conducts performance and stability tests on the camera component.The test results show that the message channel capability implemented by the component improves the method execution efficiency during hierarchical communication compared to PlatformChannel.At the same time,the startup speed of the camera component is improved by about 19.7%compared to the official scheme,and the speed of obtaining camera frames by the Flutter layer is improved by about 5.1%.The component can well cope with the recording task of high-definition video,and the component has a stable frame rate effect during recording.The overall memory usage of special effects and high-definition components is stable and performs well.
Keywords/Search Tags:Flutter, Android Native, Camera
PDF Full Text Request
Related items