API References

Controller

Main Controller

class Moilapp_Controller.Controller(*args: Any, **kwargs: Any)[source]

Bases: Ui_MainWindow

Parameters:

() (parent)

connect_event()[source]

Connect every event on user interface like button event, mouse event and etc to the function processing.

onclick_clear()[source]
open_image()[source]

Open Dialog to search the file image from directory. This function also will read the comment from metadata image.

onclick_load_video()[source]

Open Dialog to search video file from Directory. after you select the video file, it will show the prompt to select the type of camera.

open_camera()[source]

open the camera from the available source in the system, this function provide 2 source namely USB cam and Streaming cam from Raspberry pi.

running_video(video_source, easySpin=False)[source]

Open Video following the source given.

Parameters:

() (video_source) – the source of media, can be camera and video file.

onclick_view_normal()[source]

Showing the original image into Label frame in UI.

showToWindow()[source]

Showing the processing result image into the frame UI.

save_image()[source]

Save image into local directory, it can save original image or result image from panorama or anypoint processing.

addWidget(image)[source]

Add the image widget in the list widget_controller of saved image. it can be reopen when you select. :param image (): the image saved.

saved_image_activated()[source]

Function that for connect with the event in list widget to reopen the image.

cropImage(rect)[source]
classmethod convertCv2ToQimage(im)[source]
classmethod convertQImageToMat(incomingImage)[source]

Converts a QImage into an opencv MAT format

show_percentage()[source]
combo_percentage_zoom()[source]
reset_mode_view()[source]

Update the properties’ widget_controller when you reset.

control_frame_view_button()[source]

control the button in anypoint and panorama mode.

maximize_view()[source]

Control the widget on user interface to make possible in maximum size.

minimize_view()[source]

Control the widget on user interface to make possible in minimum size.

actionRecordVideo()[source]

Create video writer to save video.

buttonRecordVideo()[source]

Create video writer to save video.

onclickRecenter()[source]
onclickReleaseNote()[source]

Showing the message box to show help information obout this application.

classmethod checkUpdate()[source]
onclick_accessibility()[source]

Open prompt for accessibility MoilApp Returns:

onclick_help()[source]

Showing the message box to show help information obout this application.

onclick_help_moil()[source]
updateLabel(filename=None)[source]
onclick_exit()[source]

Returns:

closeEvent(event)[source]

Control the close event by ask yes or no. :param event ():

Returns:

Anypoint

class anypoint.Anypoint(Parent)[source]

Bases: object

The class for anypoint process.

Parameters:

() (Parent) – The Main class of this application

set_param_any()[source]
writeAlphaBeta()[source]
process_to_anypoint()[source]

This function is to process the image and show on anypoint mode.

anypoint()[source]

Anypoint widget_controller algorithm.

anyPo()[source]
anypoint_mode_1()[source]

Execute the anypoint process mode 1.

Returns:

None.

anypoint_mode_2()[source]

Execute the anypoint process mode 2.

Returns:

None.

resetAlphaBeta()[source]

The method for reset alpha, beta, zoom, and angle.

Returns:

None.

up()[source]

The method showing anypoint widget_controller in specific area.

left()[source]

The method showing anypoint widget_controller in specific area.

center()[source]

The method showing anypoint widget_controller in specific area.

right()[source]

The method showing anypoint widget_controller in specific area.

down()[source]

The method showing anypoint widget_controller in specific area.

Panorama

class panorama.Panorama(Parent)[source]

Bases: object

Panorama widget_controller controller :param Parent (): The main class

process_to_panorama()[source]

Process to the panorama widget_controller.

change_panorama_fov()[source]

Change the panorama widget_controller with change the field of widget_controller.

Views

Main Views

class Ui_Moilapp.Ui_MainWindow(*args: Any, **kwargs: Any)[source]

Bases: QMainWindow

setupUi(MainWindow)[source]
retranslateUi(MainWindow)[source]

Plugin

Main Plugin

class base_plugin.Plugin[source]

Bases: object

This is the base class that each plugin must inheritance from. Within this class you have to define the methods that all of your plugins must implement.

perform_operation(argument)[source]

The method that we expect all plugins to implement. this is the framework our method will call.

Parameters:

() (argument) – The object widget from main application.

Returns:

None