# net_camera **Repository Path**: opfe/net_camera ## Basic Information - **Project Name**: net_camera - **Description**: 安卓2.3~4.4 手机拍照局域网发送到电脑 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-04 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NetCamera Android Photo Capture and Transmission Tool ## Project Overview NetCamera is an Android application that, when paired with a Python server, enables taking photos and transmitting them in real time to a computer. The project consists of two core components: 1. **Android Client** – Responsible for capturing photos and sending them via TCP sockets 2. **Python Server** – Receives and saves photos from Android devices ## Features - 📷 Photo capture on Android device - 📡 Real-time photo transmission via TCP sockets - 🖥️ Python server receives and saves images - 🔌 Supports custom IP address and port configuration - 📱 Simple and clean Android interface ## Project Structure ``` net_camera/ ├── src/com/example/t01/ │ └── MainActivity.java # Android main interface ├── host-photo-receive.py # Python server ├── res/ # Android resource files └── AndroidManifest.xml # Android manifest file ``` ## System Requirements ### Android Side - Android 4.0+ (API 14+) - Camera permission - Network permission ### Server Side - Python 3.x ## Usage Instructions ### 1. Run the Python Server Execute the receiving script on your computer: ```bash python host-photo-receive.py ``` By default, it listens on port 8888 and saves received images in the current directory. ### 2. Configure the Android App 1. Enter the server's IP address and port in the Android app settings 2. Tap the "Connect" button to establish a TCP connection ### 3. Take and Send a Photo 1. Tap the "Capture" button to take a photo 2. Tap the "Send" button to transmit the photo to the server ## Android Main Functions | Function | Description | |----------|-------------| | Connect/Disconnect | Establish or terminate TCP connection with the server | | Capture | Launch the device camera to take a photo | | Send | Transmit the captured photo to the server via TCP | ## Python Server Details `host-photo-receive.py` is a multithreaded TCP server: - Uses `ThreadedTCPServer` to handle multiple client connections - The `PhotoHandler` class manages photo reception logic - Received images are saved in the current directory with timestamp-based filenames ## Technology Stack - **Android**: Java, Socket Programming - **Server**: Python 3, socketserver ## License This project is intended solely for educational and communication purposes.