Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
[image] fix image draw_image & open.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhuanchen committed May 20, 2022
1 parent d681dde commit e451109
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
3 changes: 2 additions & 1 deletion docs/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ your r329
## pypi upload

- python3 setup.py sdist build
- python3 setup.py sdist
- python3 setup.py build && pip3 install .
- python3.8 setup.py bdist_wheel maix_v83x

> pip3 install twine
Expand Down
1 change: 1 addition & 0 deletions ext_modules/_maix_image/_maix_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ maix_image &maix_image::_open_file(std::string path)
libmaix_image_t *tmp_img = NULL;
if (libmaix_cv_image_open_file(&tmp_img, path.c_str()) != 0)
{
printf("[image.open] %s file does not exist\r\n", path.c_str());
this->v_close();
return *this;
}
Expand Down
7 changes: 6 additions & 1 deletion maix/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@

__all__ = ['nn', 'display', 'camera']
version='0.4.8'

__all__ = ['nn', 'display', 'camera', 'image']

try:
from . import nn
__all__.extend(['nn'])
except ModuleNotFoundError as e:
pass

import signal
signal.signal(signal.SIGINT,lambda signum,frame:exit(0))
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
setup.py file for maixpy3
"""

import sys
import platform
from setuptools import setup, Extension, find_packages
import sys, platform
from setuptools import setup, find_packages

ext_modules = []
data_files = []
py_modules = []
ext_modules, data_files, py_modules = [], [], []

sysstr = platform.system()

Expand All @@ -30,9 +27,11 @@
data_files.extend(_maix_data_files)
py_modules.extend(_maix_py_modules)

from maix import version

setup(
name='maixpy3',
version='0.4.8',
version=version,
license='MIT',
author='Sipeed',
author_email="[email protected]",
Expand Down

0 comments on commit e451109

Please sign in to comment.