Controller
Addition
- plugins.default.contoller.addition.select_file(title, dir_path, file_filter)[source]
Find the file path from the directory computer.
- Parameters:
title – the title window of open dialog
file_filter – determine the specific file want to search
dir_path – Navigate to specific directory
- Return type:
file_path
- plugins.default.contoller.addition.draw_point(image, heightImage, coordinatePoint)[source]
Drawing the dot on the image from the coordinate given
- Parameters:
image – Image
heightImage – to determine the point size in the image
coordinatePoint – determine the location of the point in the image
- Return type:
image
Window
- class plugins.default.contoller.control_window.ViewWindow(MainWindow)[source]
Bases:
object
Initial Class to control the window in user interface.
- Parameters:
() (MainWindow) – Is the parent class to access the user interface widget in this application.
- connectToButton()[source]
The method for connect the function with UI event
- Returns:
The event will connect to function.
- showMaximized()[source]
To showing the result image in maximize window. it will hide the original label image.
- Returns:
showing image on Maximum windows.
Image
- class plugins.default.contoller.resize_image.ResizeImage(MainWindow)[source]
Bases:
object
Initial class setting ratio image To solve the ratio image problem where using the various of camera type.h
- Parameters:
() (MainWindow) – Is the parent class to access the user interface widget in this application.
Camera
- plugins.default.contoller.select_cam.check_port_camera()[source]
Check the camera usb that available in computer
- Returns:
will showing the port camera available
- class plugins.default.contoller.select_cam.OpenCameras(MainWindow, recentWindow)[source]
Bases:
Ui_Dialog
This class is to control the window selecting camera.
- Parameters:
() (recentWindow) – Is the parent class window. QtWidget of mainWindow UI
() – is the object of this recent window.
class. (it is QtDialog object inheritance from mainWindow)
- connect_to_button()[source]
This is for connect the button or event with class function.
- Returns:
None.
- handle_activated_combobox()[source]
This function is to handle combo box to select source camera.
- Returns:
if select USB Camera then it will hide the object UI for streaming camera. On the other hand, if you choose a streaming camera, it will hide the component object UI for the USB camera.
Show Result
- plugins.default.contoller.showResult.rotate(src, angle, center=None, scale=1.0)[source]
Turn an image in a clockwise or counterclockwise direction.
- Parameters:
src – original image
angle – the value angle for turn the image
center – determine the specific coordinate to rotate image
scale – scale image
- Returns:
rotated image
- Return type:
dst image
- class plugins.default.contoller.showResult.ShowImageResult(MainWindow)[source]
Bases:
object
Class to Show Image Result on user interface.
- Parameters:
() (MainWindow)
- showInRecenterLabel(image)[source]
Show the recenter label to showing the recenter image on UI.
- Parameters:
() (image)
- Returns:
None.
- showOriginalImage(imageOri)[source]
Showing the original image in label original image UI.
- Parameters:
() (imageOri)
Returns:
Video controller
- class plugins.default.contoller.videocontroller.VideoController(Mainwindow)[source]
Bases:
object
The class to control the video. this class also inheritance from mainwindow class.
- Parameters:
() (Mainwindow) – Is the parent class to access the user interface widget in this application.
- videoButtonDisable()[source]
This method has function to disable the buttons control video when not in video mode.
Returns: